com.ibm.commerce.tools.catalog.commands

Class ProductDeleteImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, ProductDelete, ToolsControllerCommand, 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 ProductDeleteImpl
    extends ToolsControllerCommandImpl
    implements ProductDelete
    This is the default implementation of the ProductDelete controller command. This command deletes products. This command is no longer attached to any UI element, and is no longer used. In its place, the CatalogEntryDeleteCmd should be used to build any customization.
    If an error occurs, it throws an ECException.
    See Also:
    Serialized Form
    • Constructor Detail

      • ProductDeleteImpl

        public ProductDeleteImpl()
    • Method Detail

      • performExecute

        public void performExecute()
                            throws ECException
        This method implements the business logic for the ProductDelete controller command.
        The CatalogEntryDeleteCmd is used to delete the product.
        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 resets all instance variables to null.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • setRequestProperties

        public void setRequestProperties(TypedProperty reqParams)
                                  throws ECApplicationException
        This method accepts input parameters from RequestProperties for the controller command. From the TypedProperty, an array of type String is retrieved corresponding to the parameter ECCatalogEditorConstants.CHECKED_PRODUCT. That array of type String represents the list of catalog entry IDs to delete.
        Specified by:
        setRequestProperties in interface ControllerCommand
        Overrides:
        setRequestProperties in class ToolsControllerCommandImpl
        Parameters:
        reqParams - com.ibm.commerce.datatype.TypedProperty
        Throws:
        ECApplicationException.
        ECApplicationException - if the request properties can't be processed