Class MembershipPromotionCodeLogic
java.lang.Object
ch.tocco.nice2.optional.order.api.promotioncode.AbstractDefaultPromotionCodeLogic
ch.tocco.nice2.optional.membershiporder.impl.MembershipPromotionCodeLogic
- All Implemented Interfaces:
PromotionCodeLogic
-
Constructor Summary
ConstructorDescriptionMembershipPromotionCodeLogic
(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
-
MembershipPromotionCodeLogic
public MembershipPromotionCodeLogic(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
-