com.ibm.commerce.catalogmanagement.commands

Class CatalogGroupDeleteCmdImpl

  • All Implemented Interfaces:
    CatalogGroupDeleteCmd, 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 CatalogGroupDeleteCmdImpl
    extends ControllerCommandImpl
    implements CatalogGroupDeleteCmd
    The CatalogGroupDeleteCmd is a URL and controller command that:
    • If the force option is set to 0, then the catalog group will be marked for deletion.
    • If the force option is set to 1, then the catalog group will be deleted.
    Parameters:
    • CatGroupId, or MemberId and Identifier
    • CatGroupId, or MemberId and Identifier
    Access Beans:
    • CatalogGroupAccessBean, CatalogGroupDescrptionAccessBean
    • CatalogGroupAccessBean, CatalogGroupDescriptionAccessBean
    Task Commands: DeleteCatalogGroupCmd.
    Other Controller Commands: None.
    Mandatory Parameters: catgroupId, or identifier.
    Additional Parameters: None.
    Optional Parameters: force, URL.
    Default Value: force = 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.CatalogGroupDeleteCmdImpl".
        See Also:
        Constant Field Values
    • Constructor Detail

      • CatalogGroupDeleteCmdImpl

        public CatalogGroupDeleteCmdImpl()
    • Method Detail

      • getForce

        public java.lang.Integer getForce()
        Get the force delete option for the catalog group
        Returns:
        java.lang.Integer
      • getIdentifier

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

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

        public java.lang.Integer getMarkfordelete()
        Get the mark for delete value for the catalog group
        Returns:
        java.lang.Integer
      • getURL

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

        public void performExecute()
                            throws ECException
        The main program for CatalogGroupDelete command. This method calls the DeleteCatalogGroupCmd task command, and then the 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
      • productSetSynchronization

        public void productSetSynchronization()
                                       throws ECException
        This method synchronize the product set
        Throws:
        ECException
      • reset

        public void reset()
        This method reset all the variables used in CatalogGroupDelete command
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • setCatgroupId

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

        public void setForce(java.lang.Integer anForce)
        Set the force delete option for the catalog group
        Specified by:
        setForce in interface CatalogGroupDeleteCmd
        Parameters:
        anForce - java.lang.Integer
      • setIdentifier

        public void setIdentifier(java.lang.String astrIdentifier)
        Set the identifier of the catalog group
        Specified by:
        setIdentifier in interface CatalogGroupDeleteCmd
        Parameters:
        astrIdentifier - 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 CatalogGroupDeleteCmd
        Parameters:
        atmLastupdate - java.sql.Timestamp
      • setMarkfordelete

        public void setMarkfordelete(java.lang.Integer anMarkfordelete)
        Set the mark for delete flag for the catalog group 0 = catalog group not mark for delete 1 = catalog group marked for delete
        Specified by:
        setMarkfordelete in interface CatalogGroupDeleteCmd
        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 CatalogGroupDeleteCmd
        Parameters:
        anMemberId - java.lang.Long
      • setURL

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