public enum RoleType extends Enum<RoleType>
RoleBasedAuthorizationStrategy
's items.Modifier and Type | Method and Description |
---|---|
static RoleType |
fromString(String roleName)
Get Role Type for
RoleBasedAuthorizationStrategy 's item |
static RoleType |
FromString(String roleName)
Deprecated.
Naming convention violation, use
fromString(java.lang.String) . |
String |
getStringType()
Converts role to the legacy
RoleBasedAuthorizationStrategy 's
string. |
static RoleType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RoleType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RoleType Global
public static final RoleType Project
public static final RoleType Slave
public static RoleType[] values()
for (RoleType c : RoleType.values()) System.out.println(c);
public static RoleType 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 null@Deprecated public static RoleType FromString(String roleName)
fromString(java.lang.String)
.public static RoleType fromString(String roleName)
RoleBasedAuthorizationStrategy
's itemroleName
- String representation of
RoleBasedAuthorizationStrategy
's itemIllegalArgumentException
- Invalid roleNamepublic String getStringType()
RoleBasedAuthorizationStrategy
's
string.RoleBasedAuthorizationStrategy
's stringCopyright © 2016–2018. All rights reserved.