Enum PermissionType
- java.lang.Object
-
- java.lang.Enum<PermissionType>
-
- com.broadleafcommerce.auth.security.domain.PermissionType
-
- All Implemented Interfaces:
Serializable
,Comparable<PermissionType>
public enum PermissionType extends Enum<PermissionType>
- Author:
- Jeff Fischer, Phillip Verheyden (phillipuniverse)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<String>
prefixes()
Returns all the set of values within thePermissionType
combined with theDELIMITER
static PermissionType
valueOf(String name)
Returns the enum constant of this type with the specified name.static PermissionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATE
public static final PermissionType CREATE
-
READ
public static final PermissionType READ
-
UPDATE
public static final PermissionType UPDATE
-
DELETE
public static final PermissionType DELETE
-
ALL
public static final PermissionType ALL
-
NONE
public static final PermissionType NONE
-
-
Field Detail
-
DELIMITER
public static final String DELIMITER
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static PermissionType[] 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 (PermissionType c : PermissionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PermissionType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
prefixes
public static List<String> prefixes()
Returns all the set of values within thePermissionType
combined with theDELIMITER
- Returns:
- all prefixes including the
DELIMITER
-
-