Enum PolicyVarianceType
- java.lang.Object
-
- java.lang.Enum<PolicyVarianceType>
-
- com.broadleafcommerce.data.tracking.core.policy.trackable.variance.PolicyVarianceType
-
- All Implemented Interfaces:
Serializable
,Comparable<PolicyVarianceType>
public enum PolicyVarianceType extends Enum<PolicyVarianceType>
Describes the different variance types with which certain entity policy validations can be disabled viaPolicyVariance
.- Since:
- 1.4
- See Also:
PolicyVariance
-
-
Enum Constant Summary
Enum Constants Enum Constant Description TENANT_TRACKABLE_APP_CONTEXT
This can be used to skip context validations for aTenantTrackable
entity being inserted/updated from an "application context" (whereContextInfo
has anapplication
present).
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PolicyVarianceType
valueOf(String name)
Returns the enum constant of this type with the specified name.static PolicyVarianceType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TENANT_TRACKABLE_APP_CONTEXT
public static final PolicyVarianceType TENANT_TRACKABLE_APP_CONTEXT
This can be used to skip context validations for aTenantTrackable
entity being inserted/updated from an "application context" (whereContextInfo
has anapplication
present).
-
-
Method Detail
-
values
public static PolicyVarianceType[] 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 (PolicyVarianceType c : PolicyVarianceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PolicyVarianceType 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
-
-