Enum Class PromotionsManager.AutoApplyMode
java.lang.Object
java.lang.Enum<PromotionsManager.AutoApplyMode>
de.hybris.platform.promotions.jalo.PromotionsManager.AutoApplyMode
- All Implemented Interfaces:
Serializable,Comparable<PromotionsManager.AutoApplyMode>,Constable
- Enclosing class:
- PromotionsManager
Which changes should the promotions manager apply to an order automatically.
Used in updatePromotions. The mode is specified separately for product and order promotions.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionApply all promotions that can be applied.Do not apply any promotions.Reapply promotions that are currently applied if they can still be applied. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static PromotionsManager.AutoApplyMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
APPLY_NONE
Do not apply any promotions. -
KEEP_APPLIED
Reapply promotions that are currently applied if they can still be applied. -
APPLY_ALL
Apply all promotions that can be applied.
-
-
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
-