com.ibm.commerce.catalogmanagement.commands

Class CatGroupRelAddCmdImpl

  • All Implemented Interfaces:
    CatGroupRelAddCmd, 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 CatGroupRelAddCmdImpl
    extends ControllerCommandImpl
    implements CatGroupRelAddCmd
    The CatGroupRelAddCmd is a URL and controller command that:
    • Adds a relationship between a parent catalog group and a child catalog group
    • Synchronizes product sets only if the synchronizeProductSet parameter is true (default).
    Parameters:
    • CatalogId, CatGroupIdParent, CatGroupIdChild
    Access Beans:
    • CatalogGroupRelationAccessBean
    Task Commands: AddCatgrprelCmd
    Other Controller Commands: None.
    Mandatory Parameters: catalogId, CatgroupIdParent, catgroupIdChild, masterCatalog.
    Additional Parameters: None.
    Optional Parameters: rule, seq, 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.CatGroupRelAddCmdImpl".
        See Also:
        Constant Field Values
    • Constructor Detail

      • CatGroupRelAddCmdImpl

        public CatGroupRelAddCmdImpl()
    • Method Detail

      • getCatalogId

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

        public java.lang.Long getCatgroupIdChild()
        Get the child catalog group Id for the catalog group to catalog group relationship
        Specified by:
        getCatgroupIdChild in interface CatGroupRelAddCmd
        Returns:
        java.lang.Long
      • getCatgroupIdParent

        public java.lang.Long getCatgroupIdParent()
        Get the parent catalog group Id for the catalog group to catalog group relationship
        Specified by:
        getCatgroupIdParent in interface CatGroupRelAddCmd
        Returns:
        java.lang.Long
      • getRule

        public java.lang.String getRule()
        Get the rule
        Returns:
        java.lang.String
      • getSequence

        public java.lang.Double getSequence()
        Get the sequence number
        Returns:
        java.lang.Double
      • getURL

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

        public void performExecute()
                            throws ECException
        The main program for CatGroupRelAdd command. This method calls the AddCatgrprelCmd task command and then sets catalog ID, catalog group parent ID, and catalog group child 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
        Product Set Synchronization
        Throws:
        ECException
      • reset

        public void reset()
        This method reset all the variables used in CatGroupRelAdd 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 group to catalog group relationship
        Specified by:
        setCatalogId in interface CatGroupRelAddCmd
        Parameters:
        anCatalogId - java.lang.Long
      • setCatgroupIdChild

        public void setCatgroupIdChild(java.lang.Long anCatgroupIdChild)
        Set a child catalog group Id for the catalog group to catalog group relationship
        Specified by:
        setCatgroupIdChild in interface CatGroupRelAddCmd
        Parameters:
        anCatgroupIdChild - java.lang.Long
      • setCatgroupIdParent

        public void setCatgroupIdParent(java.lang.Long anCatgroupIdParent)
        Set a parent catalog group Id for the catalog group to catalog group relationship
        Specified by:
        setCatgroupIdParent in interface CatGroupRelAddCmd
        Parameters:
        anCatgroupIdParent - java.lang.Long
      • setRule

        public void setRule(java.lang.String astrRule)
        Set the rule
        Specified by:
        setRule in interface CatGroupRelAddCmd
        Parameters:
        astrRule - java.lang.String
      • setSequence

        public void setSequence(java.lang.Double adSequence)
        Set the sequence
        Specified by:
        setSequence in interface CatGroupRelAddCmd
        Parameters:
        adSequence - java.lang.Double
      • setURL

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

        public void setSynchronizeProductSets(boolean synchronizeProductSets)
        Set the synchronize attribute
        Specified by:
        setSynchronizeProductSets in interface CatGroupRelAddCmd
        Parameters:
        synchronize - boolean