com.ibm.commerce.catalogmanagement.commands

Class AttributeValueDeleteCmdImpl

  • All Implemented Interfaces:
    AttributeValueDeleteCmd, 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 AttributeValueDeleteCmdImpl
    extends ControllerCommandImpl
    implements AttributeValueDeleteCmd
    The AttributeValueDeleteCmd is a URL and Controller Command that:
    • If the attribute value ID is supplied:
      • delete an existing attribute value
      • calls CatalogEntryDeleteCmd for all the items associated with the deleting attribute value.
    • If the catalog entry ID of an item is supplied:
      • delete all attribute values related to that catalog entry
      • calls the CatalogEntryDeleteCmd to delete the item
    Parameters:
    • attribute value ID
    • catalog entry ID
    Access Beans:
    • AttributeValue
    Task Commands: DeleteAttributeValueCmd
    Other Controller Commands: None
    Mandatory Parameters: attrvalueId, or catentryId
    Additional Parameters: none
    Optional Parameters: force, descLangId, 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.AttributeValueDeleteCmdImpl".
        See Also:
        Constant Field Values
    • Constructor Detail

      • AttributeValueDeleteCmdImpl

        public AttributeValueDeleteCmdImpl()
    • Method Detail

      • getDescLanguage

        public java.lang.Integer getDescLanguage()
        Get the description language for the attribute value
        Returns:
        java.lang.Integer
      • getForce

        public java.lang.Integer getForce()
        Get the force delete option for the attribute value. The force delete option is used to determine if the catalog entry associated with the attribute value is to be deleted or marked for deletion. 0 = catalog entry associated with the attribute value will be marked for deletion 1 = catalog entry associated with the attribute value will be deleted
        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 AttributeValueDelete command. This method calls the DeleteAttributeValueCmd task command and then sets the attribute value ID, attribute ID, and language 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 AttributeValueDelete command
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • setAttributeId

        public void setAttributeId(java.lang.Long anAttributeId)
        Set the attribute Id
        Specified by:
        setAttributeId in interface AttributeValueDeleteCmd
        Parameters:
        anAttributeId - java.lang.Long
      • setAttrvalueId

        public void setAttrvalueId(java.lang.Long anAttrvalueId)
        Set the attribute value Id
        Specified by:
        setAttrvalueId in interface AttributeValueDeleteCmd
        Parameters:
        anAttrvalueId - java.lang.Long
      • setCatentryId

        public void setCatentryId(java.lang.Long anCatentryId)
        Set a catalog entry Id
        Specified by:
        setCatentryId in interface AttributeValueDeleteCmd
        Parameters:
        anCatentryId - java.lang.Long
      • setDescLanguage

        public void setDescLanguage(java.lang.Integer anDescLanguage)
        Set the language Id of the attribute value
        Specified by:
        setDescLanguage in interface AttributeValueDeleteCmd
        Parameters:
        anDescLanguage - java.lang.Integer
      • setForce

        public void setForce(java.lang.Integer anForce)
        Set the force delete option for the attribute value. The force delete option is used to determine if the catalog entry associated with the attribute value is to be deleted or marked for deletion.
        0 = catalog entry associated with the attribute value will be marked for deletion.
        1 = catalog entry associated with the attribute value will be deleted.
        Specified by:
        setForce in interface AttributeValueDeleteCmd
        Parameters:
        anForce - java.lang.Integer
      • setURL

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