Class DefaultPromotionGroupStrategy
- java.lang.Object
-
- de.hybris.platform.promotions.impl.DefaultPromotionGroupStrategy
-
- All Implemented Interfaces:
PromotionGroupStrategy
- Direct Known Subclasses:
DefaultCommercePromotionGroupStrategy
public class DefaultPromotionGroupStrategy extends java.lang.Object implements PromotionGroupStrategy
-
-
Constructor Summary
Constructors Constructor Description DefaultPromotionGroupStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PromotionGroupModelgetDefaultPromotionGroup()Method returns default promotions groupPromotionGroupModelgetDefaultPromotionGroup(AbstractOrderModel order)Method returns default promotions group for given order, because it can depend on store where order was created.protected PromotionsServicegetPromotionsService()voidsetPromotionsService(PromotionsService promotionsService)
-
-
-
Method Detail
-
getDefaultPromotionGroup
public PromotionGroupModel getDefaultPromotionGroup()
Description copied from interface:PromotionGroupStrategyMethod returns default promotions group- Specified by:
getDefaultPromotionGroupin interfacePromotionGroupStrategy- Returns:
- default promotion group
-
getDefaultPromotionGroup
public PromotionGroupModel getDefaultPromotionGroup(AbstractOrderModel order)
Description copied from interface:PromotionGroupStrategyMethod returns default promotions group for given order, because it can depend on store where order was created.- Specified by:
getDefaultPromotionGroupin interfacePromotionGroupStrategy- Parameters:
order- order for which default promotions group will be returned- Returns:
- default promotions group
-
getPromotionsService
protected PromotionsService getPromotionsService()
-
setPromotionsService
public void setPromotionsService(PromotionsService promotionsService)
-
-