Enum Class AbstractPromotionRestriction.RestrictionResult
java.lang.Object
java.lang.Enum<AbstractPromotionRestriction.RestrictionResult>
de.hybris.platform.promotions.jalo.AbstractPromotionRestriction.RestrictionResult
- All Implemented Interfaces:
Serializable,Comparable<AbstractPromotionRestriction.RestrictionResult>,Constable
- Enclosing class:
- AbstractPromotionRestriction
public static enum AbstractPromotionRestriction.RestrictionResult
extends Enum<AbstractPromotionRestriction.RestrictionResult>
Result values from the evaluate methods.
Result values from the
AbstractPromotionRestriction.evaluate(de.hybris.platform.jalo.SessionContext, java.util.Collection<de.hybris.platform.jalo.product.Product>, java.util.Date, de.hybris.platform.jalo.order.AbstractOrder) methods.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe restriction has allowed the evaluation, but has restricted the set of products that can be operated on.The restriction has allowed the evaluation.The restriction has denied the evaluation. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DENY
The restriction has denied the evaluation. -
ALLOW
The restriction has allowed the evaluation. -
ADJUSTED_PRODUCTS
The restriction has allowed the evaluation, but has restricted the set of products that can be operated on.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-