Interface PromotionCodeLogic

All Known Implementing Classes:
AbstractDefaultPromotionCodeLogic, MembershipPromotionCodeLogic, OrderPromotionCodeLogic, RegistrationPromotionCodeLogic

public interface PromotionCodeLogic
  • Method Details

    • getDefaultPositions

      EntityList getDefaultPositions(Entity source)
      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

      EntityList getCurrentPositions(Entity source)
      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

      void createNewPosition(Entity source, Entity promotionCode)
      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 for
      promotionCode - the promotion code to use
    • getEntityName

      String getEntityName()