Package com.jgcomptech.tools.authc
Enum UserRoleManager.SystemUserRoles
- java.lang.Object
-
- java.lang.Enum<UserRoleManager.SystemUserRoles>
-
- com.jgcomptech.tools.authc.UserRoleManager.SystemUserRoles
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<UserRoleManager.SystemUserRoles>
- Enclosing class:
- UserRoleManager
public static enum UserRoleManager.SystemUserRoles extends java.lang.Enum<UserRoleManager.SystemUserRoles>
A List of the implemented system user roles.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
UserRole
getRole()
static java.util.HashSet<java.lang.String>
getRoles()
static UserRoleManager.SystemUserRoles
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static UserRoleManager.SystemUserRoles[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADMIN
public static final UserRoleManager.SystemUserRoles ADMIN
Has Admin, Edit, Create and Read Permissions.
-
EDITOR
public static final UserRoleManager.SystemUserRoles EDITOR
Has Edit, Create and Read Permissions.
-
AUTHOR
public static final UserRoleManager.SystemUserRoles AUTHOR
Has Create and Read Permissions.
-
BASIC
public static final UserRoleManager.SystemUserRoles BASIC
Has Read Permissions.
-
NONE
public static final UserRoleManager.SystemUserRoles NONE
Does not have any Permissions.
-
-
Method Detail
-
values
public static UserRoleManager.SystemUserRoles[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (UserRoleManager.SystemUserRoles c : UserRoleManager.SystemUserRoles.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UserRoleManager.SystemUserRoles valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getName
public java.lang.String getName()
-
getRole
public UserRole getRole()
-
getRoles
public static java.util.HashSet<java.lang.String> getRoles()
-
-