Class ProductDeleteImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, ProductDelete, ToolsControllerCommand,,,,,,

    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
        performExecute in class AbstractECTargetableCommand
      • reset

        public void reset()
        This method resets all instance variables to null.
        Specified by:
        reset in interface
        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
        setRequestProperties in class ToolsControllerCommandImpl
        reqParams -
        ECApplicationException - if the request properties can't be processed