com.ibm.commerce.catalogmanagement.commands

Class CatGroupRelDeleteCmdImpl

  • All Implemented Interfaces:
    CatGroupRelDeleteCmd, 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 CatGroupRelDeleteCmdImpl
    extends ControllerCommandImpl
    implements CatGroupRelDeleteCmd
    The CatGroupRelDeleteCmd is a URL and controller command that:
    • Deletes a relationship between a parent catalog group and a child catalog group.
    • If the parent catalog group is generic, then deletes all the catalog group relationships with the specified child catalog group ID.
    • If the child catalog group is generic, then deletes all the catalog group relationships with the specified parent catalog group ID.
    • Synchronizes product sets only if the synchronizeProductSet parameter is true (default).
    Parameters:
    • CatalogId, CatGroupIdParent, CatGroupIdChild
    • CatalogId, CatGroupIdParent=*, CatGroupIdChild
    • CatalogId, CatGroupIdParent, CatGroupIdChild=*
    Access Beans:
    • CatalogGroupRelationshipAccessBean
    • CatalogGroupRelationshipAccessBean
    • CatalogGroupRelationshipAccessBean
    Task Commands: DeleteCatgrprelCmd
    Other Controller Commands: None.
    Mandatory Parameters: catalogId, catgroupIdParent, catgroupIdChild, masterCatalog.
    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.CatGroupRelDeleteCmdImpl".
        See Also:
        Constant Field Values
      • GENERIC_CATGROUP_ID_PARENT

        public java.lang.Boolean GENERIC_CATGROUP_ID_PARENT
      • GENERIC_CATGROUP_ID_CHILD

        public java.lang.Boolean GENERIC_CATGROUP_ID_CHILD
    • Constructor Detail

      • CatGroupRelDeleteCmdImpl

        public CatGroupRelDeleteCmdImpl()
    • 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 CatGroupRelDeleteCmd
        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 CatGroupRelDeleteCmd
        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 CatGroupRelDeleteCmd
        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 CatGroupRelDelete command. This method calls the DeleteCatgrprelCmd task command, and then sets the 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
      • reset

        public void reset()
        This method reset all the variables used in CatGroupRelDelete 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 CatGroupRelDeleteCmd
        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 CatGroupRelDeleteCmd
        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 CatGroupRelDeleteCmd
        Parameters:
        anCatgroupIdParent - java.lang.Long
      • setURL

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

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