Class GeneratedCxCustomization

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

public abstract class GeneratedCxCustomization extends GenericItem
Generated class for type CxCustomization.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedCxCustomization

      public GeneratedCxCustomization()
  • Method Details

    • getDefaultAttributeModes

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

      public CatalogVersion getCatalogVersion(SessionContext ctx)
      Generated method - Getter of the CxCustomization.catalogVersion attribute.
      Returns:
      the catalogVersion
    • getCatalogVersion

      public CatalogVersion getCatalogVersion()
      Generated method - Getter of the CxCustomization.catalogVersion attribute.
      Returns:
      the catalogVersion
    • setCatalogVersion

      public void setCatalogVersion(SessionContext ctx, CatalogVersion value)
      Generated method - Setter of the CxCustomization.catalogVersion attribute.
      Parameters:
      value - the catalogVersion
    • setCatalogVersion

      public void setCatalogVersion(CatalogVersion value)
      Generated method - Setter of the CxCustomization.catalogVersion attribute.
      Parameters:
      value - the catalogVersion
    • getCode

      public String getCode(SessionContext ctx)
      Generated method - Getter of the CxCustomization.code attribute.
      Returns:
      the code - Unique identifier
    • getCode

      public String getCode()
      Generated method - Getter of the CxCustomization.code attribute.
      Returns:
      the code - Unique identifier
    • setCode

      protected void setCode(SessionContext ctx, String value)
      Generated method - Setter of the CxCustomization.code attribute.
      Parameters:
      value - the code - Unique identifier
    • setCode

      protected void setCode(String value)
      Generated method - Setter of the CxCustomization.code attribute.
      Parameters:
      value - the code - Unique identifier
    • 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 CxCustomization.description attribute.
      Returns:
      the description - Description of customization
    • getDescription

      public String getDescription()
      Generated method - Getter of the CxCustomization.description attribute.
      Returns:
      the description - Description of customization
    • setDescription

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

      public void setDescription(String value)
      Generated method - Setter of the CxCustomization.description attribute.
      Parameters:
      value - the description - Description of customization
    • getEnabledEndDate

      public Date getEnabledEndDate(SessionContext ctx)
      Generated method - Getter of the CxCustomization.enabledEndDate attribute.
      Returns:
      the enabledEndDate - Date and time till which customization will be active
    • getEnabledEndDate

      public Date getEnabledEndDate()
      Generated method - Getter of the CxCustomization.enabledEndDate attribute.
      Returns:
      the enabledEndDate - Date and time till which customization will be active
    • setEnabledEndDate

      public void setEnabledEndDate(SessionContext ctx, Date value)
      Generated method - Setter of the CxCustomization.enabledEndDate attribute.
      Parameters:
      value - the enabledEndDate - Date and time till which customization will be active
    • setEnabledEndDate

      public void setEnabledEndDate(Date value)
      Generated method - Setter of the CxCustomization.enabledEndDate attribute.
      Parameters:
      value - the enabledEndDate - Date and time till which customization will be active
    • getEnabledStartDate

      public Date getEnabledStartDate(SessionContext ctx)
      Generated method - Getter of the CxCustomization.enabledStartDate attribute.
      Returns:
      the enabledStartDate - Date and time from which customization will be active
    • getEnabledStartDate

      public Date getEnabledStartDate()
      Generated method - Getter of the CxCustomization.enabledStartDate attribute.
      Returns:
      the enabledStartDate - Date and time from which customization will be active
    • setEnabledStartDate

      public void setEnabledStartDate(SessionContext ctx, Date value)
      Generated method - Setter of the CxCustomization.enabledStartDate attribute.
      Parameters:
      value - the enabledStartDate - Date and time from which customization will be active
    • setEnabledStartDate

      public void setEnabledStartDate(Date value)
      Generated method - Setter of the CxCustomization.enabledStartDate attribute.
      Parameters:
      value - the enabledStartDate - Date and time from which customization will be active
    • getGroup

      public CxCustomizationsGroup getGroup(SessionContext ctx)
      Generated method - Getter of the CxCustomization.group attribute.
      Returns:
      the group
    • getGroup

      public CxCustomizationsGroup getGroup()
      Generated method - Getter of the CxCustomization.group attribute.
      Returns:
      the group
    • setGroup

      public void setGroup(SessionContext ctx, CxCustomizationsGroup value)
      Generated method - Setter of the CxCustomization.group attribute.
      Parameters:
      value - the group
    • setGroup

      public void setGroup(CxCustomizationsGroup value)
      Generated method - Setter of the CxCustomization.group attribute.
      Parameters:
      value - the group
    • getLongDescription

      public String getLongDescription(SessionContext ctx)
      Generated method - Getter of the CxCustomization.longDescription attribute.
      Returns:
      the longDescription - Long description of customization
    • getLongDescription

      public String getLongDescription()
      Generated method - Getter of the CxCustomization.longDescription attribute.
      Returns:
      the longDescription - Long description of customization
    • setLongDescription

      public void setLongDescription(SessionContext ctx, String value)
      Generated method - Setter of the CxCustomization.longDescription attribute.
      Parameters:
      value - the longDescription - Long description of customization
    • setLongDescription

      public void setLongDescription(String value)
      Generated method - Setter of the CxCustomization.longDescription attribute.
      Parameters:
      value - the longDescription - Long description of customization
    • getName

      public String getName(SessionContext ctx)
      Generated method - Getter of the CxCustomization.name attribute.
      Returns:
      the name - Name of customization
    • getName

      public String getName()
      Generated method - Getter of the CxCustomization.name attribute.
      Returns:
      the name - Name of customization
    • setName

      public void setName(SessionContext ctx, String value)
      Generated method - Setter of the CxCustomization.name attribute.
      Parameters:
      value - the name - Name of customization
    • setName

      public void setName(String value)
      Generated method - Setter of the CxCustomization.name attribute.
      Parameters:
      value - the name - Name of customization
    • getStatus

      public EnumerationValue getStatus(SessionContext ctx)
      Generated method - Getter of the CxCustomization.status attribute.
      Returns:
      the status - Contains current status of item
    • getStatus

      public EnumerationValue getStatus()
      Generated method - Getter of the CxCustomization.status attribute.
      Returns:
      the status - Contains current status of item
    • setStatus

      public void setStatus(SessionContext ctx, EnumerationValue value)
      Generated method - Setter of the CxCustomization.status attribute.
      Parameters:
      value - the status - Contains current status of item
    • setStatus

      public void setStatus(EnumerationValue value)
      Generated method - Setter of the CxCustomization.status attribute.
      Parameters:
      value - the status - Contains current status of item
    • getVariations

      public List<CxVariation> getVariations(SessionContext ctx)
      Generated method - Getter of the CxCustomization.variations attribute.
      Returns:
      the variations
    • getVariations

      public List<CxVariation> getVariations()
      Generated method - Getter of the CxCustomization.variations attribute.
      Returns:
      the variations
    • setVariations

      public void setVariations(SessionContext ctx, List<CxVariation> value)
      Generated method - Setter of the CxCustomization.variations attribute.
      Parameters:
      value - the variations
    • setVariations

      public void setVariations(List<CxVariation> value)
      Generated method - Setter of the CxCustomization.variations attribute.
      Parameters:
      value - the variations
    • addToVariations

      public void addToVariations(SessionContext ctx, CxVariation value)
      Generated method - Adds value to variations.
      Parameters:
      value - the item to add to variations
    • addToVariations

      public void addToVariations(CxVariation value)
      Generated method - Adds value to variations.
      Parameters:
      value - the item to add to variations
    • removeFromVariations

      public void removeFromVariations(SessionContext ctx, CxVariation value)
      Generated method - Removes value from variations.
      Parameters:
      value - the item to remove from variations
    • removeFromVariations

      public void removeFromVariations(CxVariation value)
      Generated method - Removes value from variations.
      Parameters:
      value - the item to remove from variations