Interface PromotionCodeLogic
- All Known Implementing Classes:
AbstractDefaultPromotionCodeLogic
,MembershipPromotionCodeLogic
,OrderPromotionCodeLogic
,RegistrationPromotionCodeLogic
public interface PromotionCodeLogic
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createNewPosition
(Entity source, Entity promotionCode) creates a new position and relates the promotion code with with the source and the created positiongetCurrentPositions
(Entity source) gets all positions for a source entity that are currently related to the entitygetDefaultPositions
(Entity source) gets all positions for a source entity that will be present after the creation of the entity
-
Method Details
-
getDefaultPositions
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)
-
getCurrentPositions
gets all positions for a source entity that are currently related to the entity- Parameters:
source
- the entity to get the positions from- Returns:
- a entitylist of positions (might be Billing_position or Order_position entities)
-
createNewPosition
creates a new position and relates the promotion code with with the source and the created position- Parameters:
source
- the source to create the position forpromotionCode
- the promotion code to use
-
getEntityName
String getEntityName()
-