Class PromotionsManager.RestrictionSetResult

  • Enclosing class:
    PromotionsManager

    public static final class PromotionsManager.RestrictionSetResult
    extends java.lang.Object
    Class representing the result of evaluating a set of restrictions.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<Product> getAllowedProducts()
      Get the filtered product list.
      boolean isAllowedToContinue()
      Check if the restrictions allow the promotion evaluation to continue.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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