Enum DefaultCartActionAuditUserTypes
- java.lang.Object
-
- java.lang.Enum<DefaultCartActionAuditUserTypes>
-
- com.broadleafcommerce.cartoperation.domain.enums.DefaultCartActionAuditUserTypes
-
- All Implemented Interfaces:
CartActionAuditUserType
,Serializable
,Comparable<DefaultCartActionAuditUserTypes>
public enum DefaultCartActionAuditUserTypes extends Enum<DefaultCartActionAuditUserTypes> implements CartActionAuditUserType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLC_ACCOUNT_APPROVER
Represents a customer user who has permission to approve account carts.BLC_ACCOUNT_MEMBER
Represents a customer user who is an account member.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isBroadleafAccountApprover(String cartActionAuditUserType)
static boolean
isBroadleafAccountMember(String cartActionAuditUserType)
static DefaultCartActionAuditUserTypes
valueOf(String name)
Returns the enum constant of this type with the specified name.static DefaultCartActionAuditUserTypes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface com.broadleafcommerce.cartoperation.domain.enums.CartActionAuditUserType
name
-
-
-
-
Enum Constant Detail
-
BLC_ACCOUNT_MEMBER
public static final DefaultCartActionAuditUserTypes BLC_ACCOUNT_MEMBER
Represents a customer user who is an account member.
-
BLC_ACCOUNT_APPROVER
public static final DefaultCartActionAuditUserTypes BLC_ACCOUNT_APPROVER
Represents a customer user who has permission to approve account carts.
-
-
Method Detail
-
values
public static DefaultCartActionAuditUserTypes[] 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 (DefaultCartActionAuditUserTypes c : DefaultCartActionAuditUserTypes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DefaultCartActionAuditUserTypes 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
-
isBroadleafAccountMember
public static boolean isBroadleafAccountMember(String cartActionAuditUserType)
-
isBroadleafAccountApprover
public static boolean isBroadleafAccountApprover(String cartActionAuditUserType)
-
-