com.ibm.commerce.catalogmanagement.commands

Class CatalogGroupUpdateCmdImpl

  • All Implemented Interfaces:
    CatalogGroupUpdateCmd, 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 CatalogGroupUpdateCmdImpl
    extends ControllerCommandImpl
    implements CatalogGroupUpdateCmd
    The CatalogGroupUpdateCmd is a URL and controller command that:
    • Updates a catalog group.
    • Updates a catalog group description. If an entry does not exist in the specified language, the catalog group description will be created.
    Parameters:
    • All fields in the CATALOG table.
    • All fields in the CATGRPDESC table.
    Access Beans:
    • CatalogGroupAccessBean
    • CatalogGroupDescriptionAccessBean
    Task Commands:
    • UpdateCatalogGroupCmd
    • UpdateCatalogGroupDescCmd
    Other Controller Commands: None.
    Mandatory Parameters: catgroupId, or identifier.
    Additional Parameters: masterCatalog, catalogId, enableContract.
    Optional Parameters: field1, field2, markForDelete, display, fImage, descLangId, keyword, lDesc, name, published, sDesc, tImage, URL.
    Default Value: descLangId = language ID from command context. published = 0.
    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.CatalogGroupUpdateCmdImpl".
        See Also:
        Constant Field Values
    • Constructor Detail

      • CatalogGroupUpdateCmdImpl

        public CatalogGroupUpdateCmdImpl()
    • Method Detail

      • getCatalogId

        public java.lang.Long getCatalogId()
        Get the catalog Id
        Returns:
        java.lang.Long
      • getContractEnablement

        public java.lang.String getContractEnablement()
        Get the contract enablement
        Returns:
        java.lang.String
      • getDescLanguage

        public java.lang.Integer getDescLanguage()
        Get language id of the catalog group description
        Returns:
        java.lang.Integer
      • getDisplay

        public java.lang.String getDisplay()
        Get the display of the catalog group description
        Returns:
        java.lang.String
      • getField1

        public java.lang.String getField1()
        Get field 1 of the catalog group
        Returns:
        java.lang.String
      • getField2

        public java.lang.String getField2()
        Get field 2 of the catalog group
        Returns:
        java.lang.String
      • getFullimage

        public java.lang.String getFullimage()
        Get the path of the full image of the catalog group description
        Returns:
        java.lang.String
      • getIdentifier

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

        public java.sql.Timestamp getLastupdate()
        Get the last update time of the catalog group
        Returns:
        java.sql.Timestamp
      • getLongdescription

        public java.lang.String getLongdescription()
        Get the long description of the catalog group description
        Returns:
        java.lang.String
      • getMarkfordelete

        public java.lang.Integer getMarkfordelete()
        Get the mark for delete value the catalog group 0 = catalog group not marked for delete 1 = catalog group marked for delete
        Returns:
        java.lang.Integer
      • getName

        public java.lang.String getName()
        Get the language dependent name of the catalog group description
        Returns:
        java.lang.String
      • getOID

        public java.lang.String getOID()
        Get the object identifier of the catalog group
        Returns:
        java.lang.String
      • getProductSetId

        public java.lang.Integer getProductSetId()
        Get the product set Id
        Returns:
        java.lang.Integer
      • getPublished

        public java.lang.Integer getPublished()
        Get the published flag of the catalog group description 0 = catalog group description not published 1 = catalog group description published
        Returns:
        java.lang.Integer
      • getShortdescription

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

        public java.lang.String getThumbnail()
        Get the thumbnail image of the catalog group description
        Returns:
        java.lang.String
      • getNote

        public java.lang.String getNote()
        Gets the footnote of the catalog group description
        Returns:
        The catalog group note
      • getURL

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

        public void performExecute()
                            throws ECException
        The main program for CatalogGroupUpdate command. This method calls the UpdateCatalogGroupCmd, and UpdateCatalogGroupDescCmd task commands, and then sets the catalog group 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()
        This method reset all the variables used in CatalogGroupUpdate command
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • setCatalogId

        public void setCatalogId(java.lang.Long newCatalogId)
        Set the catalog Id
        Parameters:
        newCatalogId - java.lang.Long
      • setCatgroupId

        public void setCatgroupId(java.lang.Long anCatgroupId)
        Set the catalog group Id
        Specified by:
        setCatgroupId in interface CatalogGroupUpdateCmd
        Parameters:
        anCatgroupId - java.lang.Long
      • setContractEnablement

        public void setContractEnablement(java.lang.String newContractEnablement)
        Set the contract enablement
        Parameters:
        newContractEnablement - java.lang.String
      • setDescLanguage

        public void setDescLanguage(java.lang.Integer anDescLanguage)
        Set language id of the catalog group description
        Specified by:
        setDescLanguage in interface CatalogGroupUpdateCmd
        Parameters:
        anDescLanguage - java.lang.Integer
      • setDisplay

        public void setDisplay(java.lang.String astrDisplay)
        Set the display for the catalog group description
        Specified by:
        setDisplay in interface CatalogGroupUpdateCmd
        Parameters:
        astrDisplay - java.lang.String
      • setField1

        public void setField1(java.lang.String astrField1)
        Set field 1 of the catalog group
        Specified by:
        setField1 in interface CatalogGroupUpdateCmd
        Parameters:
        astrField1 - java.lang.String
      • setField2

        public void setField2(java.lang.String astrField2)
        Set field 2 of the catalog group
        Specified by:
        setField2 in interface CatalogGroupUpdateCmd
        Parameters:
        astrField2 - java.lang.String
      • setFullimage

        public void setFullimage(java.lang.String astrFullimage)
        Set the path to the full image of catalog group description
        Specified by:
        setFullimage in interface CatalogGroupUpdateCmd
        Parameters:
        astrFullimage - java.lang.String
      • setIdentifier

        public void setIdentifier(java.lang.String astrIdentifier)
        Set the identifier of the catalog group
        Specified by:
        setIdentifier in interface CatalogGroupUpdateCmd
        Parameters:
        astrIdentifier - java.lang.String
      • setKeyword

        public void setKeyword(java.lang.String astrKeyword)
        Set the keyword of catalog group description
        Specified by:
        setKeyword in interface CatalogGroupUpdateCmd
        Parameters:
        astrKeyword - java.lang.String
      • setLastupdate

        public void setLastupdate(java.sql.Timestamp atmLastupdate)
        Sets the date and time when the catalog group was updated
        Specified by:
        setLastupdate in interface CatalogGroupUpdateCmd
        Parameters:
        atmLastupdate - java.sql.Timestamp
      • setLongdescription

        public void setLongdescription(java.lang.String astrLongdescription)
        Set the long description of the catalog group description
        Specified by:
        setLongdescription in interface CatalogGroupUpdateCmd
        Parameters:
        astrLongdescription - java.lang.String
      • setMarkfordelete

        public void setMarkfordelete(java.lang.Integer anMarkfordelete)
        Set the mark for delete flag of the catalog group 0 = catalog group not marked for delete 1 = catalog group marked for delete
        Specified by:
        setMarkfordelete in interface CatalogGroupUpdateCmd
        Parameters:
        anMarkfordelete - java.lang.Integer
      • setMemberId

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

        public void setName(java.lang.String astrName)
        Set the language dependent name of the catalog group description
        Specified by:
        setName in interface CatalogGroupUpdateCmd
        Parameters:
        astrName - java.lang.String
      • setOID

        public void setOID(java.lang.String astrOID)
        Set the object identifier of the catalog group
        Specified by:
        setOID in interface CatalogGroupUpdateCmd
        Parameters:
        astrOID - java.lang.String
      • setProductSetId

        public void setProductSetId(java.lang.Integer newProductSetId)
        Set the product set Id
        Parameters:
        newProductSetId - java.lang.Integer
      • setPublished

        public void setPublished(java.lang.Integer anPublished)
        Set the published flag of the catalog group description: 0 = catalog group description not published. 1 = catalog group description published.
        Specified by:
        setPublished in interface CatalogGroupUpdateCmd
        Parameters:
        anPublished - java.lang.Integer
      • setShortdescription

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

        public void setThumbnail(java.lang.String astrThumbnail)
        Set the path to the thumbnail image of the catalog group description
        Specified by:
        setThumbnail in interface CatalogGroupUpdateCmd
        Parameters:
        astrThumbnail - java.lang.String
      • setNote

        public void setNote(java.lang.String astrNote)
        Sets the footnote of the catalog group description
        Specified by:
        setNote in interface CatalogGroupUpdateCmd
        Parameters:
        astrNote - The catalog group note
      • setURL

        public void setURL(java.lang.String astrURL)
        Set a redirect URL
        Specified by:
        setURL in interface CatalogGroupUpdateCmd
        Parameters:
        astrURL - java.lang.String