Package com.io7m.idstore.model
Enum Class IdAdminPermission
- All Implemented Interfaces:
Serializable,Comparable<IdAdminPermission>,Constable
The type of admin permissions.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA permission that allows for banning admins.A permission that allows for creating admins.A permission that allows for deleting admins.A permission that allows reading admins.A permission that allows for modifying admins.A permission that allows an admin to modify itself.A permission that allows reading the audit log.A permission that allows for banning users.A permission that allows creating users.A permission that allows deleting users.A permission that allows reading users.A permission that allows modifying users. -
Method Summary
Modifier and TypeMethodDescriptionabstract Set<IdAdminPermission>implies()static IdAdminPermissionReturns the enum constant of this class with the specified name.static IdAdminPermission[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADMIN_DELETE
A permission that allows for deleting admins. -
ADMIN_CREATE
A permission that allows for creating admins. -
USER_BAN
A permission that allows for banning users. -
ADMIN_BAN
A permission that allows for banning admins. -
ADMIN_WRITE
A permission that allows for modifying admins. -
ADMIN_WRITE_SELF
A permission that allows an admin to modify itself. -
ADMIN_READ
A permission that allows reading admins. -
AUDIT_READ
A permission that allows reading the audit log. -
USER_DELETE
A permission that allows deleting users. -
USER_CREATE
A permission that allows creating users. -
USER_WRITE
A permission that allows modifying users. -
USER_READ
A permission that allows reading users.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
implies
- Returns:
- The set of permissions implied by this permission
-