Class PromotionsManager.RestrictionSetResult
- java.lang.Object
-
- de.hybris.platform.promotions.jalo.PromotionsManager.RestrictionSetResult
-
- Enclosing class:
- PromotionsManager
public static final class PromotionsManager.RestrictionSetResult extends java.lang.ObjectClass representing the result of evaluating a set of restrictions.
-
-
Constructor Summary
Constructors Constructor Description RestrictionSetResult()Create a deny restriction setRestrictionSetResult(java.util.List<Product> allowedProducts)Create an allow restriction set with specified products.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Product>getAllowedProducts()Get the filtered product list.booleanisAllowedToContinue()Check if the restrictions allow the promotion evaluation to continue.
-
-
-
Constructor Detail
-
RestrictionSetResult
public RestrictionSetResult()
Create a deny restriction set
-
RestrictionSetResult
public RestrictionSetResult(java.util.List<Product> allowedProducts)
Create an allow restriction set with specified products.- Parameters:
allowedProducts- the list of allowed products
-
-
Method Detail
-
isAllowedToContinue
public boolean isAllowedToContinue()
Check if the restrictions allow the promotion evaluation to continue.- Returns:
- true if the promotion is allowed to evaluate
-
getAllowedProducts
public java.util.List<Product> getAllowedProducts()
Get the filtered product list.- Returns:
- The filtered product list
-
-