Interface CommercePromotionDao

    • Method Detail

      • findPromotionForCode

        java.util.List<AbstractPromotionModel> findPromotionForCode​(java.lang.String code)
        Find the promotion by given code.
        Parameters:
        code - - promotion identifier
        Returns:
        - found promotions list or empty list
        Throws:
        java.lang.IllegalArgumentException - if the given code is null
      • findProductPromotions

        java.util.List<ProductPromotionModel> findProductPromotions​(java.util.Collection<PromotionGroupModel> promotionGroups)
        Find all product promotions from promotion group
        Parameters:
        promotionGroups - The promotion groups to evaluate
        Returns:
        all product promotions
        Throws:
        java.lang.IllegalArgumentException - if the given promotionGroups is null or empty
      • findOrderPromotions

        java.util.List<OrderPromotionModel> findOrderPromotions​(java.util.Collection<PromotionGroupModel> promotionGroups)
        Find all order promotions from promotion group
        Parameters:
        promotionGroups - The promotion groups to evaluate
        Returns:
        all order promotions
        Throws:
        java.lang.IllegalArgumentException - if the given promotionGroups is null or empty
      • findProductPromotions

        java.util.List<ProductPromotionModel> findProductPromotions()
        Find all product promotions
        Returns:
        all product promotions
      • findOrderPromotions

        java.util.List<OrderPromotionModel> findOrderPromotions()
        Find all order promotions
        Returns:
        all order promotions