public static enum AccessController.AccessResult extends Enum<AccessController.AccessResult>
Enum Constant and Description |
---|
ANONYMOUS_ALLOWED
If the user is allowed because the right is allowed for any anonymous user
|
ANONYMOUS_DENIED
If the user is denied because the right is denied for any anonymous user
|
ANY_CONNECTED_ALLOWED
If the user is allowed because the right is allowed for any connected user
|
ANY_CONNECTED_DENIED
If the user is denied because the right is denied for any connected user
|
GROUP_ALLOWED
If the user is allowed through its groups and not directly
|
GROUP_DENIED
If the user is denied through its groups and not directly
|
UNKNOWN
Cannot determine
|
USER_ALLOWED
If the user is directly allowed
|
USER_DENIED
If the user is directly denied
|
Modifier and Type | Method and Description |
---|---|
static AccessController.AccessResult |
merge(AccessController.AccessResult... accessResults)
Merge several access results to keep only the more important
|
static AccessController.AccessResult |
merge(Collection<AccessController.AccessResult> accessResults)
Merge several access results to keep only the more important
|
RightManager.RightResult |
toRightResult()
Convert the value to an access result
|
static AccessController.AccessResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AccessController.AccessResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccessController.AccessResult ANONYMOUS_ALLOWED
public static final AccessController.AccessResult USER_DENIED
public static final AccessController.AccessResult USER_ALLOWED
public static final AccessController.AccessResult GROUP_DENIED
public static final AccessController.AccessResult GROUP_ALLOWED
public static final AccessController.AccessResult ANY_CONNECTED_DENIED
public static final AccessController.AccessResult ANY_CONNECTED_ALLOWED
public static final AccessController.AccessResult ANONYMOUS_DENIED
public static final AccessController.AccessResult UNKNOWN
public static AccessController.AccessResult[] values()
for (AccessController.AccessResult c : AccessController.AccessResult.values()) System.out.println(c);
public static AccessController.AccessResult valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic RightManager.RightResult toRightResult()
public static AccessController.AccessResult merge(Collection<AccessController.AccessResult> accessResults)
accessResults
- The access results to merge. Cannot be null but can be empty.public static AccessController.AccessResult merge(AccessController.AccessResult... accessResults)
accessResults
- The access results to merge. Cannot be null but can be empty.