Class GeneratedCatalog

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

public abstract class GeneratedCatalog extends GenericItem
Generated class for type Catalog.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedCatalog

      public GeneratedCatalog()
  • Method Details

    • getDefaultAttributeModes

      protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
      Overrides:
      getDefaultAttributeModes in class Item
    • 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 Set<CatalogVersion> getCatalogVersions(SessionContext ctx)
      Generated method - Getter of the Catalog.catalogVersions attribute.
      Returns:
      the catalogVersions
    • getCatalogVersions

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

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

      public void setCatalogVersions(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 Boolean isDefaultCatalog(SessionContext ctx)
      Generated method - Getter of the Catalog.defaultCatalog attribute.
      Returns:
      the defaultCatalog - Default catalog
    • isDefaultCatalog

      public 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, 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
    • 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 String getId(SessionContext ctx)
      Generated method - Getter of the Catalog.id attribute.
      Returns:
      the id - ID
    • getId

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public void setPreviewURLTemplate(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 Collection<String> getUrlPatterns(SessionContext ctx)
      Generated method - Getter of the Catalog.urlPatterns attribute.
      Returns:
      the urlPatterns - Collection of URL patterns
    • getUrlPatterns

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

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

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