Enum UserRoleEnum
- java.lang.Object
-
- java.lang.Enum<UserRoleEnum>
-
- ch.tbmelabs.serverconstants.security.UserRoleEnum
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<UserRoleEnum>
public enum UserRoleEnum extends java.lang.Enum<UserRoleEnum>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANONYMOUSCONTENT_ADMINCONTENT_SUPPORTGANDALFGUESTPREMIUM_USERSERVER_ADMINSERVER_SUPPORTUSER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAuthority()java.lang.LonggetId()java.lang.StringgetName()static UserRoleEnumvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static UserRoleEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GANDALF
public static final UserRoleEnum GANDALF
-
SERVER_ADMIN
public static final UserRoleEnum SERVER_ADMIN
-
SERVER_SUPPORT
public static final UserRoleEnum SERVER_SUPPORT
-
CONTENT_ADMIN
public static final UserRoleEnum CONTENT_ADMIN
-
CONTENT_SUPPORT
public static final UserRoleEnum CONTENT_SUPPORT
-
PREMIUM_USER
public static final UserRoleEnum PREMIUM_USER
-
USER
public static final UserRoleEnum USER
-
GUEST
public static final UserRoleEnum GUEST
-
ANONYMOUS
public static final UserRoleEnum ANONYMOUS
-
-
Method Detail
-
values
public static UserRoleEnum[] 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 (UserRoleEnum c : UserRoleEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UserRoleEnum 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
-
getId
public java.lang.Long getId()
-
getAuthority
public java.lang.String getAuthority()
-
getName
public java.lang.String getName()
-
-