Class PromotionsManager.RestrictionSetResult
java.lang.Object
de.hybris.platform.promotions.jalo.PromotionsManager.RestrictionSetResult
- Enclosing class:
- PromotionsManager
Class representing the result of evaluating a set of restrictions.
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a deny restriction setRestrictionSetResult(List<Product> allowedProducts) Create an allow restriction set with specified products. -
Method Summary
Modifier and TypeMethodDescriptionGet the filtered product list.booleanCheck if the restrictions allow the promotion evaluation to continue.
-
Constructor Details
-
RestrictionSetResult
public RestrictionSetResult()Create a deny restriction set -
RestrictionSetResult
Create an allow restriction set with specified products.- Parameters:
allowedProducts- the list of allowed products
-
-
Method Details
-
isAllowedToContinue
public boolean isAllowedToContinue()Check if the restrictions allow the promotion evaluation to continue.- Returns:
- true if the promotion is allowed to evaluate
-
getAllowedProducts
Get the filtered product list.- Returns:
- The filtered product list
-