Enum PermissionUtils.PermissionType
- java.lang.Object
-
- java.lang.Enum<PermissionUtils.PermissionType>
-
- com.broadleafcommerce.data.tracking.core.policy.PermissionUtils.PermissionType
-
- All Implemented Interfaces:
Serializable
,Comparable<PermissionUtils.PermissionType>
- Enclosing class:
- PermissionUtils
public static enum PermissionUtils.PermissionType extends Enum<PermissionUtils.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 thePermissionUtils.PermissionType
combined with theDELIMITER
static PermissionUtils.PermissionType
valueOf(String name)
Returns the enum constant of this type with the specified name.static PermissionUtils.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 PermissionUtils.PermissionType CREATE
-
READ
public static final PermissionUtils.PermissionType READ
-
UPDATE
public static final PermissionUtils.PermissionType UPDATE
-
DELETE
public static final PermissionUtils.PermissionType DELETE
-
ALL
public static final PermissionUtils.PermissionType ALL
-
NONE
public static final PermissionUtils.PermissionType NONE
-
-
Field Detail
-
DELIMITER
public static final String DELIMITER
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static PermissionUtils.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 (PermissionUtils.PermissionType c : PermissionUtils.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 PermissionUtils.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 thePermissionUtils.PermissionType
combined with theDELIMITER
- Returns:
- all prefixes including the
DELIMITER
-
-