com.ibm.commerce.content.facade.server.commands

Class ManagedFileResponseBuildBaseCmdImpl

  • java.lang.Object
    • com.ibm.commerce.content.facade.server.commands.ManagedFileResponseBuildBaseCmdImpl
  • All Implemented Interfaces:
    MessageMappingResponseCmd, com.ibm.websphere.command.Command, java.io.Serializable
    Direct Known Subclasses:
    AcknowledgeManagedFileBuildCmdImpl


    public abstract class ManagedFileResponseBuildBaseCmdImpl
    extends java.lang.Object
    implements MessageMappingResponseCmd
    This is the base class for managedFile response building, and it calls validateParameters and performExecute in the execute method. Its subclasses will override the validateParameters and performExecute.
    See Also:
    Serialized Form
    • Constructor Detail

      • ManagedFileResponseBuildBaseCmdImpl

        public ManagedFileResponseBuildBaseCmdImpl()
        This is the constructor of the class.
    • Method Detail

      • createResponseBusinessOjectDocument

        public abstract BusinessObjectDocumentType createResponseBusinessOjectDocument()
        This method returns the business object document type.
        Returns:
        the instance of BusinessObjectDocumentType
      • setControllerCommand

        public void setControllerCommand(ControllerCommand controllerCommand)
        This method sets the controller command.
        Specified by:
        setControllerCommand in interface MessageMappingResponseCmd
        Parameters:
        controllerCommand -
        See Also:
        com.ibm.commerce.managedFile.server.commands.ChangeManagedFileCmd#setChangeManagedFile(com.ibm.commerce.managedFile.facade.datatypes.ChangeManagedFileType)
      • setException

        public void setException(java.lang.Exception exception)
        This method sets the exception.
        Specified by:
        setException in interface MessageMappingResponseCmd
        Parameters:
        exception -
      • performExecute

        public abstract void performExecute()
                                     throws ECException
        This method executes the main logic.
        Throws:
        ECException
      • execute

        public void execute()
                     throws com.ibm.websphere.command.CommandException
        This method executes the whole logic of this command.
        Specified by:
        execute in interface com.ibm.websphere.command.Command
        Throws:
        com.ibm.websphere.command.CommandException
        See Also:
        Command.execute()
      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        This method returns if this command is ready to execute.
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        See Also:
        Command.isReadyToCallExecute()
      • reset

        public void reset()
        This method resets this command.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        See Also:
        Command.reset()
      • getCommandContext

        public CommandContext getCommandContext()
        This method gets the command context.
        Returns:
        CommandContext
      • getControllerCommand

        public ControllerCommand getControllerCommand()
        This method returns the controller command.
        Returns:
        ControllerCommand the iControllerCommand.
      • getException

        public java.lang.Exception getException()
        This method returns the exception.
        Returns:
        This method returns the iException .