Class GeneratedAbstractPromotion

All Implemented Interfaces:
Serializable, Comparable
Direct Known Subclasses:
AbstractPromotion

public abstract class GeneratedAbstractPromotion extends GenericItem
Generated class for type AbstractPromotion.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedAbstractPromotion

      public GeneratedAbstractPromotion()
  • Method Details

    • getDefaultAttributeModes

      protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
      Overrides:
      getDefaultAttributeModes in class Item
    • getCode

      public String getCode(SessionContext ctx)
      Generated method - Getter of the AbstractPromotion.code attribute.
      Returns:
      the code - Identifier for this promotion
    • getCode

      public String getCode()
      Generated method - Getter of the AbstractPromotion.code attribute.
      Returns:
      the code - Identifier for this promotion
    • setCode

      public void setCode(SessionContext ctx, String value)
      Generated method - Setter of the AbstractPromotion.code attribute.
      Parameters:
      value - the code - Identifier for this promotion
    • setCode

      public void setCode(String value)
      Generated method - Setter of the AbstractPromotion.code attribute.
      Parameters:
      value - the code - Identifier for this promotion
    • createItem

      protected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
      Description copied from class: Item
      Has to be implemented for each concrete subtype of item. This method is responsible for creating a new item instance ( by calling managers, ejb homes, etc. ) during ComposedType.newInstance(Map).

      In case this method uses any of the attribute values during creation it is required to override Item.getNonInitialAttributes(SessionContext, ItemAttributeMap) too.
      Sn example:

      
       public static final String MY_ATTRIBUTE = "someAttribute"; ... protected Item createItem(SessionContext
       ctx, ComposedType type, Map allAttributes ) throws JaloBusinessException { MyManager man = ... return
       man.createMyItem( (String)allAttributes.get(MY_ATTRIBUTE) );
       // here MY_ATTRIBUTE is used for creation, so it must not be set again } protected Map getNonInitialAttributes(
       SessionContext ctx, Map allAttributes ) { // let superclass remove its own initial attributes Map ret =
       super.getNonInitialAttributes( ctx, allAttributes );
       // remove MY_ATTRIBUTE from all attributes since if has already been set ret.remove(MY_ATTRIBUTE); return ret; }
      
       
      Overrides:
      createItem in class GenericItem
      Parameters:
      ctx - the current session context which this item is created within
      type - the actual item type ( since subtypes may not provide a own jalo class this may be different from the type which this method was implemented for )
      Returns:
      the new item instance
      Throws:
      JaloBusinessException - indicates an error during creation - any changes will be rollbacked
    • getDescription

      public String getDescription(SessionContext ctx)
      Generated method - Getter of the AbstractPromotion.description attribute.
      Returns:
      the description - Description of this promotion
    • getDescription

      public String getDescription()
      Generated method - Getter of the AbstractPromotion.description attribute.
      Returns:
      the description - Description of this promotion
    • setDescription

      public void setDescription(SessionContext ctx, String value)
      Generated method - Setter of the AbstractPromotion.description attribute.
      Parameters:
      value - the description - Description of this promotion
    • setDescription

      public void setDescription(String value)
      Generated method - Setter of the AbstractPromotion.description attribute.
      Parameters:
      value - the description - Description of this promotion
    • getDetailsURL

      public String getDetailsURL(SessionContext ctx)
      Generated method - Getter of the AbstractPromotion.detailsURL attribute.
      Returns:
      the detailsURL - URL to a content page with further details of this promotion
    • getDetailsURL

      public String getDetailsURL()
      Generated method - Getter of the AbstractPromotion.detailsURL attribute.
      Returns:
      the detailsURL - URL to a content page with further details of this promotion
    • setDetailsURL

      public void setDetailsURL(SessionContext ctx, String value)
      Generated method - Setter of the AbstractPromotion.detailsURL attribute.
      Parameters:
      value - the detailsURL - URL to a content page with further details of this promotion
    • setDetailsURL

      public void setDetailsURL(String value)
      Generated method - Setter of the AbstractPromotion.detailsURL attribute.
      Parameters:
      value - the detailsURL - URL to a content page with further details of this promotion
    • isEnabled

      public Boolean isEnabled(SessionContext ctx)
      Generated method - Getter of the AbstractPromotion.enabled attribute.
      Returns:
      the enabled - Flag to indicate if this promotion is enabled.
    • isEnabled

      public Boolean isEnabled()
      Generated method - Getter of the AbstractPromotion.enabled attribute.
      Returns:
      the enabled - Flag to indicate if this promotion is enabled.
    • isEnabledAsPrimitive

      public boolean isEnabledAsPrimitive(SessionContext ctx)
      Generated method - Getter of the AbstractPromotion.enabled attribute.
      Returns:
      the enabled - Flag to indicate if this promotion is enabled.
    • isEnabledAsPrimitive

      public boolean isEnabledAsPrimitive()
      Generated method - Getter of the AbstractPromotion.enabled attribute.
      Returns:
      the enabled - Flag to indicate if this promotion is enabled.
    • setEnabled

      public void setEnabled(SessionContext ctx, Boolean value)
      Generated method - Setter of the AbstractPromotion.enabled attribute.
      Parameters:
      value - the enabled - Flag to indicate if this promotion is enabled.
    • setEnabled

      public void setEnabled(Boolean value)
      Generated method - Setter of the AbstractPromotion.enabled attribute.
      Parameters:
      value - the enabled - Flag to indicate if this promotion is enabled.
    • setEnabled

      public void setEnabled(SessionContext ctx, boolean value)
      Generated method - Setter of the AbstractPromotion.enabled attribute.
      Parameters:
      value - the enabled - Flag to indicate if this promotion is enabled.
    • setEnabled

      public void setEnabled(boolean value)
      Generated method - Setter of the AbstractPromotion.enabled attribute.
      Parameters:
      value - the enabled - Flag to indicate if this promotion is enabled.
    • getEndDate

      public Date getEndDate(SessionContext ctx)
      Generated method - Getter of the AbstractPromotion.endDate attribute.
      Returns:
      the endDate - Date on which this promotion stops being available, if not set the promotion will not be available.
    • getEndDate

      public Date getEndDate()
      Generated method - Getter of the AbstractPromotion.endDate attribute.
      Returns:
      the endDate - Date on which this promotion stops being available, if not set the promotion will not be available.
    • setEndDate

      public void setEndDate(SessionContext ctx, Date value)
      Generated method - Setter of the AbstractPromotion.endDate attribute.
      Parameters:
      value - the endDate - Date on which this promotion stops being available, if not set the promotion will not be available.
    • setEndDate

      public void setEndDate(Date value)
      Generated method - Setter of the AbstractPromotion.endDate attribute.
      Parameters:
      value - the endDate - Date on which this promotion stops being available, if not set the promotion will not be available.
    • getImmutableKey

      public String getImmutableKey(SessionContext ctx)
      Generated method - Getter of the AbstractPromotion.immutableKey attribute.
      Returns:
      the immutableKey - The full immutable identifier for this promotion
    • getImmutableKey

      public String getImmutableKey()
      Generated method - Getter of the AbstractPromotion.immutableKey attribute.
      Returns:
      the immutableKey - The full immutable identifier for this promotion
    • setImmutableKey

      public void setImmutableKey(SessionContext ctx, String value)
      Generated method - Setter of the AbstractPromotion.immutableKey attribute.
      Parameters:
      value - the immutableKey - The full immutable identifier for this promotion
    • setImmutableKey

      public void setImmutableKey(String value)
      Generated method - Setter of the AbstractPromotion.immutableKey attribute.
      Parameters:
      value - the immutableKey - The full immutable identifier for this promotion
    • getImmutableKeyHash

      public String getImmutableKeyHash(SessionContext ctx)
      Generated method - Getter of the AbstractPromotion.immutableKeyHash attribute.
      Returns:
      the immutableKeyHash - The HASH of the immutableKey
    • getImmutableKeyHash

      public String getImmutableKeyHash()
      Generated method - Getter of the AbstractPromotion.immutableKeyHash attribute.
      Returns:
      the immutableKeyHash - The HASH of the immutableKey
    • setImmutableKeyHash

      public void setImmutableKeyHash(SessionContext ctx, String value)
      Generated method - Setter of the AbstractPromotion.immutableKeyHash attribute.
      Parameters:
      value - the immutableKeyHash - The HASH of the immutableKey
    • setImmutableKeyHash

      public void setImmutableKeyHash(String value)
      Generated method - Setter of the AbstractPromotion.immutableKeyHash attribute.
      Parameters:
      value - the immutableKeyHash - The HASH of the immutableKey
    • getName

      public String getName(SessionContext ctx)
      Generated method - Getter of the AbstractPromotion.name attribute.
      Returns:
      the name - Displayable name for this promotion
    • getName

      public String getName()
      Generated method - Getter of the AbstractPromotion.name attribute.
      Returns:
      the name - Displayable name for this promotion
    • getAllName

      public Map<Language,String> getAllName(SessionContext ctx)
      Generated method - Getter of the AbstractPromotion.name attribute.
      Returns:
      the localized name - Displayable name for this promotion
    • getAllName

      public Map<Language,String> getAllName()
      Generated method - Getter of the AbstractPromotion.name attribute.
      Returns:
      the localized name - Displayable name for this promotion
    • setName

      public void setName(SessionContext ctx, String value)
      Generated method - Setter of the AbstractPromotion.name attribute.
      Parameters:
      value - the name - Displayable name for this promotion
    • setName

      public void setName(String value)
      Generated method - Setter of the AbstractPromotion.name attribute.
      Parameters:
      value - the name - Displayable name for this promotion
    • setAllName

      public void setAllName(SessionContext ctx, Map<Language,String> value)
      Generated method - Setter of the AbstractPromotion.name attribute.
      Parameters:
      value - the name - Displayable name for this promotion
    • setAllName

      public void setAllName(Map<Language,String> value)
      Generated method - Setter of the AbstractPromotion.name attribute.
      Parameters:
      value - the name - Displayable name for this promotion
    • getPriority

      public Integer getPriority(SessionContext ctx)
      Generated method - Getter of the AbstractPromotion.priority attribute.
      Returns:
      the priority - Value to indicate relative priority of promotions. The higher the value the higher the priority.
    • getPriority

      public Integer getPriority()
      Generated method - Getter of the AbstractPromotion.priority attribute.
      Returns:
      the priority - Value to indicate relative priority of promotions. The higher the value the higher the priority.
    • getPriorityAsPrimitive

      public int getPriorityAsPrimitive(SessionContext ctx)
      Generated method - Getter of the AbstractPromotion.priority attribute.
      Returns:
      the priority - Value to indicate relative priority of promotions. The higher the value the higher the priority.
    • getPriorityAsPrimitive

      public int getPriorityAsPrimitive()
      Generated method - Getter of the AbstractPromotion.priority attribute.
      Returns:
      the priority - Value to indicate relative priority of promotions. The higher the value the higher the priority.
    • setPriority

      public void setPriority(SessionContext ctx, Integer value)
      Generated method - Setter of the AbstractPromotion.priority attribute.
      Parameters:
      value - the priority - Value to indicate relative priority of promotions. The higher the value the higher the priority.
    • setPriority

      public void setPriority(Integer value)
      Generated method - Setter of the AbstractPromotion.priority attribute.
      Parameters:
      value - the priority - Value to indicate relative priority of promotions. The higher the value the higher the priority.
    • setPriority

      public void setPriority(SessionContext ctx, int value)
      Generated method - Setter of the AbstractPromotion.priority attribute.
      Parameters:
      value - the priority - Value to indicate relative priority of promotions. The higher the value the higher the priority.
    • setPriority

      public void setPriority(int value)
      Generated method - Setter of the AbstractPromotion.priority attribute.
      Parameters:
      value - the priority - Value to indicate relative priority of promotions. The higher the value the higher the priority.
    • getPromotionGroup

      public PromotionGroup getPromotionGroup(SessionContext ctx)
      Generated method - Getter of the AbstractPromotion.PromotionGroup attribute.
      Returns:
      the PromotionGroup
    • getPromotionGroup

      public PromotionGroup getPromotionGroup()
      Generated method - Getter of the AbstractPromotion.PromotionGroup attribute.
      Returns:
      the PromotionGroup
    • setPromotionGroup

      public void setPromotionGroup(SessionContext ctx, PromotionGroup value)
      Generated method - Setter of the AbstractPromotion.PromotionGroup attribute.
      Parameters:
      value - the PromotionGroup
    • setPromotionGroup

      public void setPromotionGroup(PromotionGroup value)
      Generated method - Setter of the AbstractPromotion.PromotionGroup attribute.
      Parameters:
      value - the PromotionGroup
    • getPromotionType

      public abstract String getPromotionType(SessionContext ctx)
      Generated method - Getter of the AbstractPromotion.promotionType attribute.
      Returns:
      the promotionType - The type of this promotion.
    • getPromotionType

      public String getPromotionType()
      Generated method - Getter of the AbstractPromotion.promotionType attribute.
      Returns:
      the promotionType - The type of this promotion.
    • getAllPromotionType

      public abstract Map<Language,String> getAllPromotionType(SessionContext ctx)
      Generated method - Getter of the AbstractPromotion.promotionType attribute.
      Returns:
      the localized promotionType - The type of this promotion.
    • getAllPromotionType

      public Map<Language,String> getAllPromotionType()
      Generated method - Getter of the AbstractPromotion.promotionType attribute.
      Returns:
      the localized promotionType - The type of this promotion.
    • getRestrictions

      public abstract Collection<AbstractPromotionRestriction> getRestrictions(SessionContext ctx)
      Generated method - Getter of the AbstractPromotion.restrictions attribute.
      Returns:
      the restrictions - Collection of restrictions that are applied to this promotion
    • getRestrictions

      public Collection<AbstractPromotionRestriction> getRestrictions()
      Generated method - Getter of the AbstractPromotion.restrictions attribute.
      Returns:
      the restrictions - Collection of restrictions that are applied to this promotion
    • setRestrictions

      public abstract void setRestrictions(SessionContext ctx, Collection<AbstractPromotionRestriction> value)
      Generated method - Setter of the AbstractPromotion.restrictions attribute.
      Parameters:
      value - the restrictions - Collection of restrictions that are applied to this promotion
    • setRestrictions

      public void setRestrictions(Collection<AbstractPromotionRestriction> value)
      Generated method - Setter of the AbstractPromotion.restrictions attribute.
      Parameters:
      value - the restrictions - Collection of restrictions that are applied to this promotion
    • getStartDate

      public Date getStartDate(SessionContext ctx)
      Generated method - Getter of the AbstractPromotion.startDate attribute.
      Returns:
      the startDate - Date on which this promotion becomes available, if not set the promotion will not be available.
    • getStartDate

      public Date getStartDate()
      Generated method - Getter of the AbstractPromotion.startDate attribute.
      Returns:
      the startDate - Date on which this promotion becomes available, if not set the promotion will not be available.
    • setStartDate

      public void setStartDate(SessionContext ctx, Date value)
      Generated method - Setter of the AbstractPromotion.startDate attribute.
      Parameters:
      value - the startDate - Date on which this promotion becomes available, if not set the promotion will not be available.
    • setStartDate

      public void setStartDate(Date value)
      Generated method - Setter of the AbstractPromotion.startDate attribute.
      Parameters:
      value - the startDate - Date on which this promotion becomes available, if not set the promotion will not be available.
    • getTitle

      public String getTitle(SessionContext ctx)
      Generated method - Getter of the AbstractPromotion.title attribute.
      Returns:
      the title - Title for this promotion
    • getTitle

      public String getTitle()
      Generated method - Getter of the AbstractPromotion.title attribute.
      Returns:
      the title - Title for this promotion
    • setTitle

      public void setTitle(SessionContext ctx, String value)
      Generated method - Setter of the AbstractPromotion.title attribute.
      Parameters:
      value - the title - Title for this promotion
    • setTitle

      public void setTitle(String value)
      Generated method - Setter of the AbstractPromotion.title attribute.
      Parameters:
      value - the title - Title for this promotion