com.ibm.commerce.utf.commands
Class RFQCloseCmdImpl

java.lang.Object
  CacheableCommandImpl
      com.ibm.commerce.command.AbstractECTargetableCommand
          com.ibm.commerce.command.ControllerCommandImpl
              com.ibm.commerce.tools.command.ToolsControllerCommandImpl
                  com.ibm.commerce.utf.commands.RFQCloseCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, RFQCloseCmd, ToolsControllerCommand

public class RFQCloseCmdImpl
extends ToolsControllerCommandImpl
implements RFQCloseCmd

This is the default implementation of the RFQCloseCmd.

This command calls the following TaskCommands:

This command uses the following AccessBeans:
See Also:
Serialized Form

Field Summary
Fields inherited from class com.ibm.commerce.command.ControllerCommandImpl
requestProperties, responseProperties, retriable, viewReqProperties
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
commandContext
Fields inherited from interface com.ibm.commerce.utf.commands.RFQCloseCmd
COPYRIGHT, defaultCommandClassName, NAME
Constructor Summary
RFQCloseCmdImpl()
Method Summary
void performExecute()
Closes the RFQs and sets all corresponding responses to the in evaluation state.
void reset()
Reset the command.
void setRequestProperties(TypedProperty requestProperties)
Checks if the required parameter offering_id exists.
void validateParameters()
Checks if the supplied RFQ IDs really exist in the database.
Methods inherited from class com.ibm.commerce.tools.command.ToolsControllerCommandImpl
getViewInputProperties
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner

Constructor Detail

RFQCloseCmdImpl

public RFQCloseCmdImpl()
Method Detail

reset

public void reset()
Reset the command.
Overrides:
reset in class AbstractECTargetableCommand

performExecute

public void performExecute()
                    throws ECException
Closes the RFQs and sets all corresponding responses to the in evaluation state. Calls the CloseRFQCmd task command.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException
See Also:
ECCommand.performExecute()

validateParameters

public void validateParameters()
                        throws ECException
Checks if the supplied RFQ IDs really exist in the database. If RFQ does not exist, throws ECException.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException
See Also:
ECCommand.validateParameters()

setRequestProperties

public void setRequestProperties(TypedProperty requestProperties)
                          throws ECApplicationException
Checks if the required parameter offering_id exists. The parameter value is a comma separated list of RFQ ids, i.e.,offering_id=10015,10021,10022.
Specified by:
setRequestProperties in interface ControllerCommand
Overrides:
setRequestProperties in class ToolsControllerCommandImpl
Parameters:
requestProperties - Reuest properties to be set.
Throws:
ECApplicationException
See Also:
ControllerCmd#setRequestProperties(TypedProperty)

Feedback