com.ibm.commerce.emarketing.emailtemplate.commands

Class EmailTemplateDeleteCtrlCmdImpl

  • java.lang.Object
    • com.ibm.websphere.command.CacheableCommandImpl
      • com.ibm.commerce.command.MeasuredCacheableCommandImpl
        • com.ibm.commerce.command.AbstractECTargetableCommand
          • com.ibm.commerce.command.ControllerCommandImpl
            • com.ibm.commerce.tools.command.ToolsControllerCommandImpl
              • com.ibm.commerce.emarketing.emailtemplate.commands.EmailTemplateDeleteCtrlCmdImpl
  • All Implemented Interfaces:
    com.ibm.commerce.command.AccCommand, com.ibm.commerce.command.ControllerCommand, com.ibm.commerce.command.ECCommand, com.ibm.commerce.command.ECTargetableCommand, EmailTemplateConstants, EmailTemplateDeleteCtrlCmd, com.ibm.commerce.security.Protectable, com.ibm.commerce.tools.command.ToolsControllerCommand, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command


    public class EmailTemplateDeleteCtrlCmdImpl
    extends com.ibm.commerce.tools.command.ToolsControllerCommandImpl
    implements EmailTemplateDeleteCtrlCmd, EmailTemplateConstants
    • Field Detail

    • Constructor Detail

      • EmailTemplateDeleteCtrlCmdImpl

        public EmailTemplateDeleteCtrlCmdImpl()
    • Method Detail

      • getResources

        public com.ibm.commerce.accesscontrol.AccessVector getResources()
                                                                 throws com.ibm.commerce.exception.ECException
        Gets the resources that are accessed by this controller command. The email message access beans for the specified email message IDs are the resource returned by this method.
        Specified by:
        getResources in interface com.ibm.commerce.command.ECCommand
        Overrides:
        getResources in class com.ibm.commerce.command.AbstractECTargetableCommand
        Returns:
        A vector of resources.
        Throws:
        com.ibm.commerce.exception.ECException
        See Also:
        ECCommand#getResources()
      • performExecute

        public void performExecute()
                            throws com.ibm.commerce.exception.ECException
        Deletes the email templates from the database. The row will be still present in the database, but the status is set to - 0, which indicates it is marked for delete
        Specified by:
        performExecute in interface com.ibm.commerce.command.ECCommand
        Overrides:
        performExecute in class com.ibm.commerce.command.AbstractECTargetableCommand
        Throws:
        com.ibm.commerce.exception.ECException
      • redirect

        public void redirect()
                      throws com.ibm.commerce.exception.ECApplicationException
        This function sets the response properties, which contains the redirectURL, Action XML File and the view that will be shown after completion of this command.
        Throws:
        com.ibm.commerce.exception.ECApplicationException
      • validateParameters

        public void validateParameters()
                                throws com.ibm.commerce.exception.ECException
        Validates that messageIds are passed from the JSP file. The JSP page passes the list of messageIds to be deleted, in a comma separated string format. This String is parsed and each messaged ids are added into the vector.
        Specified by:
        validateParameters in interface com.ibm.commerce.command.ECCommand
        Overrides:
        validateParameters in class com.ibm.commerce.command.AbstractECTargetableCommand
        Throws:
        com.ibm.commerce.exception.ECException