com.ibm.commerce.catalogmanagement.commands

Class CatalogAddCmdImpl

  • All Implemented Interfaces:
    CatalogAddCmd, AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class CatalogAddCmdImpl
    extends ControllerCommandImpl
    implements CatalogAddCmd
    The CatalogAddCmd is a URL and controller command that:
    • Adds a new Catalog. If the catalog is new, then the catalog ID cannot be set.
    • Adds a new Catalog description.
    • Adds a relationship between the new Catalog and the Store.
    Parameters:
    • MemberId, Identifier, and all fields in the Catalog.
    • All fields in the CatalogDsc table.
    Access Beans:
    • CatalogAccessBean,
    • CatalogDescriptionAccessBean,
    • StoreCatalogAccessBean.
    Task Commands:
    • AddCatalogCmd,
    • AddCatalogDescCmd
    Other Controller commands: CatalogStoreRelAddCmd
    Mandatory Parameters: identifier, or catalogId (if adding catalog description)
    Additional Parameters: none
    Optional Parameters: desc, fImage, tImage, sDesc, lDesc, name, descLangId, URL
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        The internal copyright field.
        See Also:
        Constant Field Values
      • CLASSNAME

        public static final java.lang.String CLASSNAME
        The name of this interface is "com.ibm.commerce.catalogmanagement.commands.CatalogAddCmdImpl".
        See Also:
        Constant Field Values
    • Constructor Detail

      • CatalogAddCmdImpl

        public CatalogAddCmdImpl()
    • Method Detail

      • getCatalogId

        public java.lang.Long getCatalogId()
        Gets the catalog Id.
        Specified by:
        getCatalogId in interface CatalogAddCmd
        Returns:
        the catalog Id
      • getDescription

        public java.lang.String getDescription()
        Gets the description of the catalog.
        Returns:
        catalog description
      • getIdentifier

        public java.lang.String getIdentifier()
        Get. the identifier of the catalog.
        Specified by:
        getIdentifier in interface CatalogAddCmd
        Returns:
        catalog identifier
      • getDescLanguage

        public java.lang.Integer getDescLanguage()
        Gets the language Id for the catalog description.
        Returns:
        catalog description
      • getFullimage

        public java.lang.String getFullimage()
        Gets the path of the full image of the catalog description.
        Returns:
        path of full image
      • getLongdescription

        public java.lang.String getLongdescription()
        Gets the long description of the catalog.
        Returns:
        long description of the catalog
      • getName

        public java.lang.String getName()
        gets the language dependent name of the catalog.
        Returns:
        catalog name
      • getShortdescription

        public java.lang.String getShortdescription()
        Gets the short description of the catalog.
        Returns:
        catalog short description
      • getThumbnail

        public java.lang.String getThumbnail()
        Gets the path thumbnail image of the catalog.
        Returns:
        thumbnail image of the catalog
      • getURL

        public java.lang.String getURL()
        Gets the redirect URL.
        Returns:
        redirect URL
      • performExecute

        public void performExecute()
                            throws ECException
        Creates a catalog and a catalog description. This method calls the AddCatalogCmd task command and then sets the catalog ID in the response properties.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException
      • reset

        public void reset()
        Resets all the variables.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • setCatalogId

        public void setCatalogId(java.lang.Long anCatalogId)
        Sets the catalog Id for the catalog description.
        Specified by:
        setCatalogId in interface CatalogAddCmd
        Parameters:
        anCatalogId - catalog Id
      • setDescLanguage

        public void setDescLanguage(java.lang.Integer anDescLanguage)
        Sets the language Id used in the catalog description.
        Specified by:
        setDescLanguage in interface CatalogAddCmd
        Parameters:
        anDescLanguage - language Id for catalog description
      • setDescription

        public void setDescription(java.lang.String astrDescription)
        Sets the description of the catalog.
        Specified by:
        setDescription in interface CatalogAddCmd
        Parameters:
        astrDescription - description of the catalog
      • setTPCLevel

        public void setTPCLevel(java.lang.Integer anTPCLevel)
        Sets the TPC level of the catalog.
        Specified by:
        setTPCLevel in interface CatalogAddCmd
        Parameters:
        anTPCLevel - catalog TPC level
      • setFullimage

        public void setFullimage(java.lang.String astrFullimage)
        Sets the path of the full image of catalog.
        Specified by:
        setFullimage in interface CatalogAddCmd
        Parameters:
        astrFullimage - full image of the catalog
      • setIdentifier

        public void setIdentifier(java.lang.String astrIdentifier)
        Sets the identifier of the catalog.
        Specified by:
        setIdentifier in interface CatalogAddCmd
        Parameters:
        astrIdentifier - catalog identifier
      • setLongdescription

        public void setLongdescription(java.lang.String astrLongdescription)
        Sets the long description of catalog.
        Specified by:
        setLongdescription in interface CatalogAddCmd
        Parameters:
        astrLongdescription - long description of the catalog
      • setMemberId

        public void setMemberId(java.lang.Long anMemberId)
        Sets the owner Id of the catalog.
        Specified by:
        setMemberId in interface CatalogAddCmd
        Parameters:
        anMemberId - catalog owner Id
      • setName

        public void setName(java.lang.String astrName)
        Sets the language dependent name of catalog.
        Specified by:
        setName in interface CatalogAddCmd
        Parameters:
        astrName - name of catalog
      • setShortdescription

        public void setShortdescription(java.lang.String astrShortdescription)
        Sets the short description of catalog.
        Specified by:
        setShortdescription in interface CatalogAddCmd
        Parameters:
        astrShortdescription - short description of the catalog
      • setThumbnail

        public void setThumbnail(java.lang.String astrThumbnail)
        Sets the path to the thumbnail image of the catalog.
        Specified by:
        setThumbnail in interface CatalogAddCmd
        Parameters:
        astrThumbnail - thumbnail image of the catalog
      • setURL

        public void setURL(java.lang.String astrURL)
        Sets the redirect URL.
        Specified by:
        setURL in interface CatalogAddCmd
        Parameters:
        astrURL - redirect URL