com.ibm.commerce.catalogmanagement.commands

Class CatGroupCatEntryRelDeleteCmdImpl

  • All Implemented Interfaces:
    CatGroupCatEntryRelDeleteCmd, 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 CatGroupCatEntryRelDeleteCmdImpl
    extends ControllerCommandImpl
    implements CatGroupCatEntryRelDeleteCmd
    The CatGroupCatEntryRelDeleteCmd is a URL and controller command that:
    • Deletes a relationship between a catalog group and a catalog entry.
    • If the catalog group is generic, then deletes all the catalog group to catalog entry relationship with the specified catalog entry ID.
    • If the catalog entry is generic, then deletes all the catalog group to catalog entry relationship with the specified catalog group ID.
    Parameters:
    • CatalogId, CatGroupId, CatEntryId
    • CatalogId, CatGroupId=*, CatEntryId
    • CatalogId, CatGroupId, CatEntryId=*
    Access Beans:
    • CatalogGroupCatalogEntryRelationAccessBean
    • CatalogGroupCatalogEntryRelationAccessBean
    • CatalogGroupCatalogEntryRelationAccessBean
    Task Commands: DeleteCatgpenrelCmd
    Other Controller Commands: None.
    Mandatory Parameters: catalogId, catgroupId, catentryId, 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.CatGroupCatEntryRelDeleteCmdImpl".
        See Also:
        Constant Field Values
      • GENERIC_SYMBOL

        public static final java.lang.String GENERIC_SYMBOL
        Set the Constant
        See Also:
        Constant Field Values
      • GENERIC_CATGROUP_ID

        public java.lang.Boolean GENERIC_CATGROUP_ID
        Set the Constant
      • GENERIC_CATENTRY_ID

        public java.lang.Boolean GENERIC_CATENTRY_ID
        Set the Constant
    • Constructor Detail

      • CatGroupCatEntryRelDeleteCmdImpl

        public CatGroupCatEntryRelDeleteCmdImpl()
    • Method Detail

      • getCatalogId

        public java.lang.Long getCatalogId()
        Get the catalog Id for the catalog group catalog entry relationship
        Specified by:
        getCatalogId in interface CatGroupCatEntryRelDeleteCmd
        Returns:
        java.lang.Long
      • getCatentryId

        public java.lang.Long getCatentryId()
        Get the catalog entry Id for the catalog group catalog entry relationship
        Specified by:
        getCatentryId in interface CatGroupCatEntryRelDeleteCmd
        Returns:
        java.lang.Long
      • getCatgroupId

        public java.lang.Long getCatgroupId()
        Get the catalog group Id for the catalog group catalog entry relationship
        Specified by:
        getCatgroupId in interface CatGroupCatEntryRelDeleteCmd
        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
        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 CatGroupCatEntryRelDelete command. This method calls the DeleteCatgpenrelCmd task command and then sets the catalog entry 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 CatGroupCatEntryRelDelete 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 catalog entry relationship
        Specified by:
        setCatalogId in interface CatGroupCatEntryRelDeleteCmd
        Parameters:
        anCatalogId - java.lang.Long
      • setCatentryId

        public void setCatentryId(java.lang.Long anCatentryId)
        Set a catalog entry Id for the catalog group catalog entry relationship
        Specified by:
        setCatentryId in interface CatGroupCatEntryRelDeleteCmd
        Parameters:
        anCatentryId - java.lang.Long
      • setCatgroupId

        public void setCatgroupId(java.lang.Long anCatgroupId)
        Set a catalog group Id for the catalog group catalog entry relationship
        Specified by:
        setCatgroupId in interface CatGroupCatEntryRelDeleteCmd
        Parameters:
        anCatgroupId - java.lang.Long
      • setSequence

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

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