com.ibm.commerce.emarketing.emailtemplate.commands

Class EmailTemplateAddUpdateCtrlCmdImpl

  • 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.EmailTemplateAddUpdateCtrlCmdImpl
  • All Implemented Interfaces:
    com.ibm.commerce.command.AccCommand, com.ibm.commerce.command.ControllerCommand, com.ibm.commerce.command.ECCommand, com.ibm.commerce.command.ECTargetableCommand, EmailTemplateAddUpdateCtrlCmd, EmailTemplateConstants, com.ibm.commerce.security.Protectable, com.ibm.commerce.tools.command.ToolsControllerCommand, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command


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

    • Constructor Detail

      • EmailTemplateAddUpdateCtrlCmdImpl

        public EmailTemplateAddUpdateCtrlCmdImpl()
    • 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()
      • isDuplicateName

        public boolean isDuplicateName(java.lang.String name)
                                throws com.ibm.commerce.exception.ECSystemException
        Checks whether the any template with this name exists in the database
        Parameters:
        name - - The name to be checked for existence in database
        Returns:
        true - if a template with the specified name already exists in the database, false otherwise.
        Throws:
        com.ibm.commerce.exception.ECSystemException
      • performExecute

        public void performExecute()
                            throws com.ibm.commerce.exception.ECException
        Updates the database or inserts a new record in the database, based on the task type. Sets the status message, that will be displayed to the user
        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
        Sets the response properties, which identifies the view to be shown to the user after completion of this command. Also sets the errorMessage, if the command had failed
        Throws:
        com.ibm.commerce.exception.ECApplicationException
      • validateParameters

        public void validateParameters()
                                throws com.ibm.commerce.exception.ECException
        Validates that the JSP page has in fact passed all the required parameters to create a new e-mail template.
        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