Package | Description |
---|---|
org.xwiki.security.authorization |
Modifier and Type | Field and Description |
---|---|
static Right |
Right.ADMIN
The Admin access right.
|
static Right |
Right.COMMENT
The comment access right.
|
static Right |
Right.CREATE_WIKI
The creation of a Wiki right.
|
static Right |
Right.CREATOR
Imply rights provided to creator of a document.
|
static Right |
Right.DELETE
The delete access right.
|
static Right |
Right.EDIT
The edit access right.
|
static Right |
Right.ILLEGAL
Illegal value.
|
static Right |
Right.LOGIN
The login access right.
|
static Right |
Right.PROGRAM
The program access right.
|
static Right |
Right.REGISTER
The register access right.
|
static Right |
Right.SCRIPT
The script access right.
|
static Right |
Right.VIEW
The view access right.
|
Modifier and Type | Method and Description |
---|---|
static Right |
Right.get(int ordinal)
Retrieve a right based on its ordinal.
|
Right |
AuthorizationManager.register(RightDescription rightDescription)
Register a new custom
Right . |
Right |
DefaultAuthorizationManager.register(RightDescription rightDescription) |
default Right |
AuthorizationManager.register(RightDescription rightDescription,
Set<Right> impliedByRights)
Register a new custom
Right and add it as an implied right to the given set of rights. |
Right |
DefaultAuthorizationManager.register(RightDescription rightDescription,
Set<Right> impliedByRights) |
static Right |
Right.toRight(String string)
Convert a string to a right.
|
Modifier and Type | Method and Description |
---|---|
Set<Map.Entry<Right,V>> |
RightMap.entrySet() |
static Set<Right> |
Right.getEnabledRights(EntityType entityType)
Returns the list of rights available for a given entity type.
|
Set<Right> |
Right.getImpliedRights() |
Set<Right> |
RightDescription.getImpliedRights() |
static List<Right> |
Right.getStandardRights() |
Iterator<Right> |
RightSet.iterator() |
Set<Right> |
RightMap.keySet() |
static List<Right> |
Right.values() |
Modifier and Type | Method and Description |
---|---|
boolean |
RightSet.add(Right right) |
void |
ContextualAuthorizationManager.checkAccess(Right right)
Check if access identified by
right on the current entity is allowed in the current context. |
void |
AuthorizationManager.checkAccess(Right right,
DocumentReference userReference,
EntityReference entityReference)
Check if the user identified by
userReference has the access identified by right on the
entity identified by entityReference . |
void |
DefaultAuthorizationManager.checkAccess(Right right,
DocumentReference userReference,
EntityReference entityReference) |
void |
ContextualAuthorizationManager.checkAccess(Right right,
EntityReference entityReference)
Check if access identified by
right on the given entity is allowed in the current context. |
int |
Right.compareTo(Right other) |
RuleState |
SecurityAccess.get(Right right)
Return the rule state of a given
Right . |
boolean |
ContextualAuthorizationManager.hasAccess(Right right)
Verifies if access identified by
right on the current entity would be allowed in the current context. |
boolean |
AuthorizationManager.hasAccess(Right right,
DocumentReference userReference,
EntityReference entityReference)
Verifies if the user identified by
userReference has the access identified by right on the
entity identified by entityReference . |
boolean |
DefaultAuthorizationManager.hasAccess(Right right,
DocumentReference userReference,
EntityReference entityReference) |
boolean |
ContextualAuthorizationManager.hasAccess(Right right,
EntityReference entityReference)
Verifies if access identified by
right on the given entity would be allowed in the current context. |
protected void |
DefaultAuthorizationManager.logDeny(DocumentReference user,
EntityReference entity,
Right right,
String info)
Log denied access conclusion.
|
boolean |
SecurityRule.match(Right right)
Check if this rule match the given right.
|
V |
RightMap.put(Right right,
V value) |
default void |
AuthorizationManager.unregister(Right right)
Unregister the given custom
Right . |
void |
DefaultAuthorizationManager.unregister(Right right) |
Modifier and Type | Method and Description |
---|---|
boolean |
RightSet.addAll(Collection<? extends Right> rights) |
void |
RightMap.putAll(Map<? extends Right,? extends V> map) |
default Right |
AuthorizationManager.register(RightDescription rightDescription,
Set<Right> impliedByRights)
Register a new custom
Right and add it as an implied right to the given set of rights. |
Right |
DefaultAuthorizationManager.register(RightDescription rightDescription,
Set<Right> impliedByRights) |
Constructor and Description |
---|
AccessDeniedException(Right right,
DocumentReference userReference,
EntityReference entityReference) |
AccessDeniedException(Right right,
DocumentReference userReference,
EntityReference entityReference,
Throwable t) |
AuthorizationException(Right right,
DocumentReference userReference,
EntityReference entityReference,
String message) |
AuthorizationException(Right right,
DocumentReference userReference,
EntityReference entityReference,
String message,
Throwable cause) |
RightSet(Right... rights)
Create a new initialized set.
|
Constructor and Description |
---|
RightSet(Collection<? extends Right> rights)
Create a new initialized set.
|
Copyright © 2004–2022 XWiki. All rights reserved.