Package com.adobe.granite.security.user
Enum AuthorizableTypes
- All Implemented Interfaces:
Serializable,Comparable<AuthorizableTypes>,java.lang.constant.Constable
Enumeration of combinations of authorizable types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAll authorizables: users (and system users) and groups.Only groups.Only system users.Only users.All users (including system users). -
Method Summary
Modifier and TypeMethodDescriptionbooleanProvides a way to determine if this AuthorizableTypes value refers to groups as well.booleanProvides a way to determine if this AuthorizableTypes value refers to system users as well.booleanProvides a way to determine if this AuthorizableTypes value refers to users as well.static AuthorizableTypesReturns the enum constant of this type with the specified name.static AuthorizableTypes[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
ALL
All authorizables: users (and system users) and groups. -
USERS
Only users. System users are excluded. -
SYSTEM_USERS
Only system users. Regular users are excluded. -
USERS_AND_SYSTEM_USERS
All users (including system users). -
GROUPS
Only groups.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
includesUsers
public boolean includesUsers()Provides a way to determine if this AuthorizableTypes value refers to users as well. Only regular users (not system users) are reflected by this method.- Returns:
trueif the regular users are included by this enum value andfalseotherwise
-
includesSystemUsers
public boolean includesSystemUsers()Provides a way to determine if this AuthorizableTypes value refers to system users as well. Only system users (not regular users) are reflected by this method.- Returns:
trueif the system users are included by this enum value andfalseotherwise
-
includesGroups
public boolean includesGroups()Provides a way to determine if this AuthorizableTypes value refers to groups as well.- Returns:
trueif the groups are included by this enum value andfalseotherwise
-