Class OrderPromotionCodeLogic
java.lang.Object
ch.tocco.nice2.optional.order.api.promotioncode.AbstractDefaultPromotionCodeLogic
ch.tocco.nice2.optional.order.impl.promotioncode.OrderPromotionCodeLogic
- All Implemented Interfaces:
PromotionCodeLogic
-
Constructor Summary
ConstructorDescriptionOrderPromotionCodeLogic
(CommandExecutor commandExecutor, EntityDefaultValueService defaultValueService, OrderPositionService orderPositionService) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
customizePosition
(Entity source, Entity promotionCode, Entity position, Entity article) getDefaultPositions
(Entity source) gets all positions for a source entity that will be present after the creation of the entityprotected String
Methods inherited from class ch.tocco.nice2.optional.order.api.promotioncode.AbstractDefaultPromotionCodeLogic
createNewPosition, getCurrentPositions
-
Constructor Details
-
OrderPromotionCodeLogic
public OrderPromotionCodeLogic(CommandExecutor commandExecutor, EntityDefaultValueService defaultValueService, OrderPositionService orderPositionService)
-
-
Method Details
-
getDefaultPositions
Description copied from interface:PromotionCodeLogic
gets all positions for a source entity that will be present after the creation of the entity- Parameters:
source
- the entity to get the positions from- Returns:
- a entitylist of positions (might be Billing_position or Order_position entities)
-
getPositionEntityName
- Specified by:
getPositionEntityName
in classAbstractDefaultPromotionCodeLogic
-
customizePosition
protected void customizePosition(Entity source, Entity promotionCode, Entity position, Entity article) - Overrides:
customizePosition
in classAbstractDefaultPromotionCodeLogic
-
getEntityName
-