Class GeneratedCxVariation

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

public abstract class GeneratedCxVariation extends GenericItem
Generated class for type CxVariation.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedCxVariation

      public GeneratedCxVariation()
  • Method Details

    • getDefaultAttributeModes

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

      public List<CxAbstractAction> getActions(SessionContext ctx)
      Generated method - Getter of the CxVariation.actions attribute.
      Returns:
      the actions
    • getActions

      public List<CxAbstractAction> getActions()
      Generated method - Getter of the CxVariation.actions attribute.
      Returns:
      the actions
    • setActions

      public void setActions(SessionContext ctx, List<CxAbstractAction> value)
      Generated method - Setter of the CxVariation.actions attribute.
      Parameters:
      value - the actions
    • setActions

      public void setActions(List<CxAbstractAction> value)
      Generated method - Setter of the CxVariation.actions attribute.
      Parameters:
      value - the actions
    • addToActions

      public void addToActions(SessionContext ctx, CxAbstractAction value)
      Generated method - Adds value to actions.
      Parameters:
      value - the item to add to actions
    • addToActions

      public void addToActions(CxAbstractAction value)
      Generated method - Adds value to actions.
      Parameters:
      value - the item to add to actions
    • removeFromActions

      public void removeFromActions(SessionContext ctx, CxAbstractAction value)
      Generated method - Removes value from actions.
      Parameters:
      value - the item to remove from actions
    • removeFromActions

      public void removeFromActions(CxAbstractAction value)
      Generated method - Removes value from actions.
      Parameters:
      value - the item to remove from actions
    • getCatalogVersion

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

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

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

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

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

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

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

      protected void setCode(String value)
      Generated method - Setter of the CxVariation.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
    • getCustomization

      public CxCustomization getCustomization(SessionContext ctx)
      Generated method - Getter of the CxVariation.customization attribute.
      Returns:
      the customization
    • getCustomization

      public CxCustomization getCustomization()
      Generated method - Getter of the CxVariation.customization attribute.
      Returns:
      the customization
    • setCustomization

      public void setCustomization(SessionContext ctx, CxCustomization value)
      Generated method - Setter of the CxVariation.customization attribute.
      Parameters:
      value - the customization
    • setCustomization

      public void setCustomization(CxCustomization value)
      Generated method - Setter of the CxVariation.customization attribute.
      Parameters:
      value - the customization
    • isEnabled

      public Boolean isEnabled(SessionContext ctx)
      Generated method - Getter of the CxVariation.enabled attribute.
      Returns:
      the enabled - Defines if the variation is enabled or not
    • isEnabled

      public Boolean isEnabled()
      Generated method - Getter of the CxVariation.enabled attribute.
      Returns:
      the enabled - Defines if the variation is enabled or not
    • isEnabledAsPrimitive

      public boolean isEnabledAsPrimitive(SessionContext ctx)
      Generated method - Getter of the CxVariation.enabled attribute.
      Returns:
      the enabled - Defines if the variation is enabled or not
    • isEnabledAsPrimitive

      public boolean isEnabledAsPrimitive()
      Generated method - Getter of the CxVariation.enabled attribute.
      Returns:
      the enabled - Defines if the variation is enabled or not
    • setEnabled

      public void setEnabled(SessionContext ctx, Boolean value)
      Generated method - Setter of the CxVariation.enabled attribute.
      Parameters:
      value - the enabled - Defines if the variation is enabled or not
    • setEnabled

      public void setEnabled(Boolean value)
      Generated method - Setter of the CxVariation.enabled attribute.
      Parameters:
      value - the enabled - Defines if the variation is enabled or not
    • setEnabled

      public void setEnabled(SessionContext ctx, boolean value)
      Generated method - Setter of the CxVariation.enabled attribute.
      Parameters:
      value - the enabled - Defines if the variation is enabled or not
    • setEnabled

      public void setEnabled(boolean value)
      Generated method - Setter of the CxVariation.enabled attribute.
      Parameters:
      value - the enabled - Defines if the variation is enabled or not
    • getName

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

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

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

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

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

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

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

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

      public Collection<CxAbstractTrigger> getTriggers(SessionContext ctx)
      Generated method - Getter of the CxVariation.triggers attribute.
      Returns:
      the triggers
    • getTriggers

      public Collection<CxAbstractTrigger> getTriggers()
      Generated method - Getter of the CxVariation.triggers attribute.
      Returns:
      the triggers
    • setTriggers

      public void setTriggers(SessionContext ctx, Collection<CxAbstractTrigger> value)
      Generated method - Setter of the CxVariation.triggers attribute.
      Parameters:
      value - the triggers
    • setTriggers

      public void setTriggers(Collection<CxAbstractTrigger> value)
      Generated method - Setter of the CxVariation.triggers attribute.
      Parameters:
      value - the triggers
    • addToTriggers

      public void addToTriggers(SessionContext ctx, CxAbstractTrigger value)
      Generated method - Adds value to triggers.
      Parameters:
      value - the item to add to triggers
    • addToTriggers

      public void addToTriggers(CxAbstractTrigger value)
      Generated method - Adds value to triggers.
      Parameters:
      value - the item to add to triggers
    • removeFromTriggers

      public void removeFromTriggers(SessionContext ctx, CxAbstractTrigger value)
      Generated method - Removes value from triggers.
      Parameters:
      value - the item to remove from triggers
    • removeFromTriggers

      public void removeFromTriggers(CxAbstractTrigger value)
      Generated method - Removes value from triggers.
      Parameters:
      value - the item to remove from triggers