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
ConstructorsConstructorDescriptionOrderPromotionCodeLogic(CommandExecutor commandExecutor, EntityDefaultValueService defaultValueService, OrderPositionService orderPositionService) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcustomizePosition(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 StringMethods inherited from class AbstractDefaultPromotionCodeLogic
createNewPosition, getCurrentPositions
-
Constructor Details
-
OrderPromotionCodeLogic
public OrderPromotionCodeLogic(CommandExecutor commandExecutor, EntityDefaultValueService defaultValueService, OrderPositionService orderPositionService)
-
-
Method Details
-
getDefaultPositions
Description copied from interface:PromotionCodeLogicgets 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:
getPositionEntityNamein classAbstractDefaultPromotionCodeLogic
-
customizePosition
protected void customizePosition(Entity source, Entity promotionCode, Entity position, Entity article) - Overrides:
customizePositionin classAbstractDefaultPromotionCodeLogic
-
getEntityName
-