com.ibm.commerce.catalogmanagement.commands

Class TopCatalogGroupAddCmdImpl

  • All Implemented Interfaces:
    TopCatalogGroupAddCmd, 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 TopCatalogGroupAddCmdImpl
    extends ControllerCommandImpl
    implements TopCatalogGroupAddCmd
    The TopCatalogGroupAddCmd is a URL and controller command that adds a relationship between a catalog and a catalog group for the top category. Parameters:
    • catalog ID, catalog group ID.
    Access Bean:
    • CatalogCatalogGroupRelationAccessBean
    Task Commands: AddCattogrpCmd
    Other Controller Commands: None.
    Mandatory Parameters: catalogId, catgroupId.
    Additional Parameters: None.
    Optional Parameters: 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.TopCatalogGroupAddCmdImpl
        See Also:
        Constant Field Values
    • Constructor Detail

      • TopCatalogGroupAddCmdImpl

        public TopCatalogGroupAddCmdImpl()
    • Method Detail

      • getCatalogId

        public java.lang.Long getCatalogId()
        Get the catalog Id for the catalog to catalog group relationship
        Specified by:
        getCatalogId in interface TopCatalogGroupAddCmd
        Returns:
        java.lang.Long
      • getCatgroupId

        public java.lang.Long getCatgroupId()
        Get the Catalog Group Id for the catalog to catalog group relationship
        Specified by:
        getCatgroupId in interface TopCatalogGroupAddCmd
        Returns:
        java.lang.Long
      • getURL

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

        public void performExecute()
                            throws ECException
        The main program for TopCatalogGroupAdd command. This method first calls the AddCattogrpCmd task command, and then sets the catalog ID and 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 TopCatalogGroupAdd command
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • setCatalogId

        public void setCatalogId(java.lang.Long anCatalogId)
        Set a catalog Id for the catalog to top catalog group relationship
        Specified by:
        setCatalogId in interface TopCatalogGroupAddCmd
        Parameters:
        anCatalogId - jav.lang.Long
      • setCatgroupId

        public void setCatgroupId(java.lang.Long anCatgroupId)
        Set a catalog group Id for the catalog to top catalog group relationship
        Specified by:
        setCatgroupId in interface TopCatalogGroupAddCmd
        Parameters:
        anCatgroupId - java.lang.Long
      • setURL

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