Class RegistrationPromotionCodeLogic
java.lang.Object
ch.tocco.nice2.optional.order.api.promotioncode.AbstractDefaultPromotionCodeLogic
ch.tocco.nice2.optional.eventorder.impl.RegistrationPromotionCodeLogic
- All Implemented Interfaces:
PromotionCodeLogic
-
Constructor Summary
ConstructorDescriptionRegistrationPromotionCodeLogic
(CommandExecutor commandExecutor, EntityDefaultValueService defaultValueService) -
Method Summary
Modifier and TypeMethodDescriptiongetDefaultPositions
(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, customizePosition, getCurrentPositions
-
Constructor Details
-
RegistrationPromotionCodeLogic
public RegistrationPromotionCodeLogic(CommandExecutor commandExecutor, EntityDefaultValueService defaultValueService)
-
-
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)
-
getEntityName
-
getPositionEntityName
- Specified by:
getPositionEntityName
in classAbstractDefaultPromotionCodeLogic
-