Class GeneratedCatalog

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable
    Direct Known Subclasses:
    Catalog

    public abstract class GeneratedCatalog
    extends GenericItem
    Generated class for type Catalog.
    See Also:
    Serialized Form
    • Constructor Detail

      • GeneratedCatalog

        public GeneratedCatalog()
    • Method Detail

      • getActiveCatalogVersion

        public CatalogVersion getActiveCatalogVersion​(SessionContext ctx)
        Generated method - Getter of the Catalog.activeCatalogVersion attribute.
        Returns:
        the activeCatalogVersion - active CatalogVersion
      • getActiveCatalogVersion

        public CatalogVersion getActiveCatalogVersion()
        Generated method - Getter of the Catalog.activeCatalogVersion attribute.
        Returns:
        the activeCatalogVersion - active CatalogVersion
      • setActiveCatalogVersion

        public void setActiveCatalogVersion​(SessionContext ctx,
                                            CatalogVersion value)
        Generated method - Setter of the Catalog.activeCatalogVersion attribute.
        Parameters:
        value - the activeCatalogVersion - active CatalogVersion
      • setActiveCatalogVersion

        public void setActiveCatalogVersion​(CatalogVersion value)
        Generated method - Setter of the Catalog.activeCatalogVersion attribute.
        Parameters:
        value - the activeCatalogVersion - active CatalogVersion
      • getBuyer

        public Company getBuyer​(SessionContext ctx)
        Generated method - Getter of the Catalog.buyer attribute.
        Returns:
        the buyer
      • getBuyer

        public Company getBuyer()
        Generated method - Getter of the Catalog.buyer attribute.
        Returns:
        the buyer
      • setBuyer

        public void setBuyer​(SessionContext ctx,
                             Company value)
        Generated method - Setter of the Catalog.buyer attribute.
        Parameters:
        value - the buyer
      • setBuyer

        public void setBuyer​(Company value)
        Generated method - Setter of the Catalog.buyer attribute.
        Parameters:
        value - the buyer
      • getCatalogVersions

        public java.util.Set<CatalogVersion> getCatalogVersions​(SessionContext ctx)
        Generated method - Getter of the Catalog.catalogVersions attribute.
        Returns:
        the catalogVersions
      • getCatalogVersions

        public java.util.Set<CatalogVersion> getCatalogVersions()
        Generated method - Getter of the Catalog.catalogVersions attribute.
        Returns:
        the catalogVersions
      • setCatalogVersions

        public void setCatalogVersions​(SessionContext ctx,
                                       java.util.Set<CatalogVersion> value)
        Generated method - Setter of the Catalog.catalogVersions attribute.
        Parameters:
        value - the catalogVersions
      • setCatalogVersions

        public void setCatalogVersions​(java.util.Set<CatalogVersion> value)
        Generated method - Setter of the Catalog.catalogVersions attribute.
        Parameters:
        value - the catalogVersions
      • addToCatalogVersions

        public void addToCatalogVersions​(SessionContext ctx,
                                         CatalogVersion value)
        Generated method - Adds value to catalogVersions.
        Parameters:
        value - the item to add to catalogVersions
      • addToCatalogVersions

        public void addToCatalogVersions​(CatalogVersion value)
        Generated method - Adds value to catalogVersions.
        Parameters:
        value - the item to add to catalogVersions
      • removeFromCatalogVersions

        public void removeFromCatalogVersions​(SessionContext ctx,
                                              CatalogVersion value)
        Generated method - Removes value from catalogVersions.
        Parameters:
        value - the item to remove from catalogVersions
      • removeFromCatalogVersions

        public void removeFromCatalogVersions​(CatalogVersion value)
        Generated method - Removes value from catalogVersions.
        Parameters:
        value - the item to remove from catalogVersions
      • 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
      • isDefaultCatalog

        public java.lang.Boolean isDefaultCatalog​(SessionContext ctx)
        Generated method - Getter of the Catalog.defaultCatalog attribute.
        Returns:
        the defaultCatalog - Default catalog
      • isDefaultCatalog

        public java.lang.Boolean isDefaultCatalog()
        Generated method - Getter of the Catalog.defaultCatalog attribute.
        Returns:
        the defaultCatalog - Default catalog
      • isDefaultCatalogAsPrimitive

        public boolean isDefaultCatalogAsPrimitive​(SessionContext ctx)
        Generated method - Getter of the Catalog.defaultCatalog attribute.
        Returns:
        the defaultCatalog - Default catalog
      • isDefaultCatalogAsPrimitive

        public boolean isDefaultCatalogAsPrimitive()
        Generated method - Getter of the Catalog.defaultCatalog attribute.
        Returns:
        the defaultCatalog - Default catalog
      • setDefaultCatalog

        public void setDefaultCatalog​(SessionContext ctx,
                                      java.lang.Boolean value)
        Generated method - Setter of the Catalog.defaultCatalog attribute.
        Parameters:
        value - the defaultCatalog - Default catalog
      • setDefaultCatalog

        public void setDefaultCatalog​(java.lang.Boolean value)
        Generated method - Setter of the Catalog.defaultCatalog attribute.
        Parameters:
        value - the defaultCatalog - Default catalog
      • setDefaultCatalog

        public void setDefaultCatalog​(SessionContext ctx,
                                      boolean value)
        Generated method - Setter of the Catalog.defaultCatalog attribute.
        Parameters:
        value - the defaultCatalog - Default catalog
      • setDefaultCatalog

        public void setDefaultCatalog​(boolean value)
        Generated method - Setter of the Catalog.defaultCatalog attribute.
        Parameters:
        value - the defaultCatalog - Default catalog
      • getId

        public java.lang.String getId​(SessionContext ctx)
        Generated method - Getter of the Catalog.id attribute.
        Returns:
        the id - ID
      • getId

        public java.lang.String getId()
        Generated method - Getter of the Catalog.id attribute.
        Returns:
        the id - ID
      • setId

        public void setId​(SessionContext ctx,
                          java.lang.String value)
        Generated method - Setter of the Catalog.id attribute.
        Parameters:
        value - the id - ID
      • setId

        public void setId​(java.lang.String value)
        Generated method - Setter of the Catalog.id attribute.
        Parameters:
        value - the id - ID
      • getName

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

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

        public java.util.Map<Language,​java.lang.String> getAllName​(SessionContext ctx)
        Generated method - Getter of the Catalog.name attribute.
        Returns:
        the localized name - Name
      • getAllName

        public java.util.Map<Language,​java.lang.String> getAllName()
        Generated method - Getter of the Catalog.name attribute.
        Returns:
        the localized name - Name
      • setName

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

        public void setName​(java.lang.String value)
        Generated method - Setter of the Catalog.name attribute.
        Parameters:
        value - the name - Name
      • setAllName

        public void setAllName​(SessionContext ctx,
                               java.util.Map<Language,​java.lang.String> value)
        Generated method - Setter of the Catalog.name attribute.
        Parameters:
        value - the name - Name
      • setAllName

        public void setAllName​(java.util.Map<Language,​java.lang.String> value)
        Generated method - Setter of the Catalog.name attribute.
        Parameters:
        value - the name - Name
      • getPreviewURLTemplate

        public java.lang.String getPreviewURLTemplate​(SessionContext ctx)
        Generated method - Getter of the Catalog.previewURLTemplate attribute.
        Returns:
        the previewURLTemplate
      • getPreviewURLTemplate

        public java.lang.String getPreviewURLTemplate()
        Generated method - Getter of the Catalog.previewURLTemplate attribute.
        Returns:
        the previewURLTemplate
      • setPreviewURLTemplate

        public void setPreviewURLTemplate​(SessionContext ctx,
                                          java.lang.String value)
        Generated method - Setter of the Catalog.previewURLTemplate attribute.
        Parameters:
        value - the previewURLTemplate
      • setPreviewURLTemplate

        public void setPreviewURLTemplate​(java.lang.String value)
        Generated method - Setter of the Catalog.previewURLTemplate attribute.
        Parameters:
        value - the previewURLTemplate
      • getSupplier

        public Company getSupplier​(SessionContext ctx)
        Generated method - Getter of the Catalog.supplier attribute.
        Returns:
        the supplier
      • getSupplier

        public Company getSupplier()
        Generated method - Getter of the Catalog.supplier attribute.
        Returns:
        the supplier
      • setSupplier

        public void setSupplier​(SessionContext ctx,
                                Company value)
        Generated method - Setter of the Catalog.supplier attribute.
        Parameters:
        value - the supplier
      • setSupplier

        public void setSupplier​(Company value)
        Generated method - Setter of the Catalog.supplier attribute.
        Parameters:
        value - the supplier
      • getUrlPatterns

        public java.util.Collection<java.lang.String> getUrlPatterns​(SessionContext ctx)
        Generated method - Getter of the Catalog.urlPatterns attribute.
        Returns:
        the urlPatterns - Collection of URL patterns
      • getUrlPatterns

        public java.util.Collection<java.lang.String> getUrlPatterns()
        Generated method - Getter of the Catalog.urlPatterns attribute.
        Returns:
        the urlPatterns - Collection of URL patterns
      • setUrlPatterns

        public void setUrlPatterns​(SessionContext ctx,
                                   java.util.Collection<java.lang.String> value)
        Generated method - Setter of the Catalog.urlPatterns attribute.
        Parameters:
        value - the urlPatterns - Collection of URL patterns
      • setUrlPatterns

        public void setUrlPatterns​(java.util.Collection<java.lang.String> value)
        Generated method - Setter of the Catalog.urlPatterns attribute.
        Parameters:
        value - the urlPatterns - Collection of URL patterns