public enum AccessRightValidationPolicy extends Enum<AccessRightValidationPolicy>
Enum Constant and Description |
---|
ADMINONLY |
AUTHORIZEDONLY |
PARENT_OR_ADMIN |
RESOURCEOWNER_OR_ADMIN |
SELF_OR_ADMIN |
SERVICEOWNER_OR_ADMIN |
Modifier and Type | Method and Description |
---|---|
abstract void |
validate(UserChecker checker,
Object[] args) |
static AccessRightValidationPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AccessRightValidationPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccessRightValidationPolicy ADMINONLY
public static final AccessRightValidationPolicy SERVICEOWNER_OR_ADMIN
public static final AccessRightValidationPolicy RESOURCEOWNER_OR_ADMIN
public static final AccessRightValidationPolicy SELF_OR_ADMIN
public static final AccessRightValidationPolicy PARENT_OR_ADMIN
public static final AccessRightValidationPolicy AUTHORIZEDONLY
public static AccessRightValidationPolicy[] values()
for (AccessRightValidationPolicy c : AccessRightValidationPolicy.values()) System.out.println(c);
public static AccessRightValidationPolicy 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 abstract void validate(UserChecker checker, Object[] args) throws NoAccessPermissionException, ServiceConfigurationException, UserNotFoundException