Class GeneratedCxCustomization

    • Field Detail

      • CODE

        public static final java.lang.String CODE
        Qualifier of the CxCustomization.code attribute
        See Also:
        Constant Field Values
      • CATALOGVERSION

        public static final java.lang.String CATALOGVERSION
        Qualifier of the CxCustomization.catalogVersion attribute
        See Also:
        Constant Field Values
      • NAME

        public static final java.lang.String NAME
        Qualifier of the CxCustomization.name attribute
        See Also:
        Constant Field Values
      • DESCRIPTION

        public static final java.lang.String DESCRIPTION
        Qualifier of the CxCustomization.description attribute
        See Also:
        Constant Field Values
      • LONGDESCRIPTION

        public static final java.lang.String LONGDESCRIPTION
        Qualifier of the CxCustomization.longDescription attribute
        See Also:
        Constant Field Values
      • STATUS

        public static final java.lang.String STATUS
        Qualifier of the CxCustomization.status attribute
        See Also:
        Constant Field Values
      • ENABLEDSTARTDATE

        public static final java.lang.String ENABLEDSTARTDATE
        Qualifier of the CxCustomization.enabledStartDate attribute
        See Also:
        Constant Field Values
      • ENABLEDENDDATE

        public static final java.lang.String ENABLEDENDDATE
        Qualifier of the CxCustomization.enabledEndDate attribute
        See Also:
        Constant Field Values
      • VARIATIONS

        public static final java.lang.String VARIATIONS
        Qualifier of the CxCustomization.variations attribute
        See Also:
        Constant Field Values
      • GROUPPOS

        public static final java.lang.String GROUPPOS
        Qualifier of the CxCustomization.groupPOS attribute
        See Also:
        Constant Field Values
      • GROUP

        public static final java.lang.String GROUP
        Qualifier of the CxCustomization.group attribute
        See Also:
        Constant Field Values
      • DEFAULT_INITIAL_ATTRIBUTES

        protected static final java.util.Map<java.lang.String,​Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
    • Constructor Detail

      • GeneratedCxCustomization

        public GeneratedCxCustomization()
    • Method Detail

      • 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 java.lang.String getCode​(SessionContext ctx)
        Generated method - Getter of the CxCustomization.code attribute.
        Returns:
        the code - Unique identifier
      • getCode

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

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

        protected void setCode​(java.lang.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 java.lang.String getDescription​(SessionContext ctx)
        Generated method - Getter of the CxCustomization.description attribute.
        Returns:
        the description - Description of customization
      • getDescription

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

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

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

        public java.util.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 java.util.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,
                                      java.util.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​(java.util.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 java.util.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 java.util.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,
                                        java.util.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​(java.util.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()
        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 java.lang.String getLongDescription​(SessionContext ctx)
        Generated method - Getter of the CxCustomization.longDescription attribute.
        Returns:
        the longDescription - Long description of customization
      • getLongDescription

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

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

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

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

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

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

        public void setName​(java.lang.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 java.util.List<CxVariation> getVariations​(SessionContext ctx)
        Generated method - Getter of the CxCustomization.variations attribute.
        Returns:
        the variations
      • getVariations

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

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

        public void setVariations​(java.util.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