Enum DefaultCartApprovalProcessFailureTypes
- java.lang.Object
-
- java.lang.Enum<DefaultCartApprovalProcessFailureTypes>
-
- com.broadleafcommerce.cartoperation.domain.enums.DefaultCartApprovalProcessFailureTypes
-
- All Implemented Interfaces:
CartApprovalProcessFailureType
,Serializable
,Comparable<DefaultCartApprovalProcessFailureTypes>
public enum DefaultCartApprovalProcessFailureTypes extends Enum<DefaultCartApprovalProcessFailureTypes> implements CartApprovalProcessFailureType
The default set of cart approval process failure types.- Author:
- Susana Cruz
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INVALID_CART_ACCESS
Represents the error where the customer doesn't have access to a cart.INVALID_CART_STATUS
The cart is in an invalid status to request approval or rejecting.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessagePath()
static boolean
isInvalidAccess(String failureType)
static boolean
isInvalidCartStatusFailure(String failureType)
static DefaultCartApprovalProcessFailureTypes
valueOf(String name)
Returns the enum constant of this type with the specified name.static DefaultCartApprovalProcessFailureTypes[]
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.CartApprovalProcessFailureType
name
-
-
-
-
Enum Constant Detail
-
INVALID_CART_STATUS
public static final DefaultCartApprovalProcessFailureTypes INVALID_CART_STATUS
The cart is in an invalid status to request approval or rejecting.
-
INVALID_CART_ACCESS
public static final DefaultCartApprovalProcessFailureTypes INVALID_CART_ACCESS
Represents the error where the customer doesn't have access to a cart.
-
-
Method Detail
-
values
public static DefaultCartApprovalProcessFailureTypes[] 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 (DefaultCartApprovalProcessFailureTypes c : DefaultCartApprovalProcessFailureTypes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DefaultCartApprovalProcessFailureTypes 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
-
isInvalidCartStatusFailure
public static boolean isInvalidCartStatusFailure(String failureType)
-
isInvalidAccess
public static boolean isInvalidAccess(String failureType)
-
getMessagePath
public String getMessagePath()
- Specified by:
getMessagePath
in interfaceCartApprovalProcessFailureType
-
-