com.ibm.commerce.utf.commands
Class AcceptRFQResponsesCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.utf.commands.AcceptRFQResponsesCmdImpl
All Implemented Interfaces:
AcceptRFQResponsesCmd, ECCommand, ECTargetableCommand, TaskCommand

public class AcceptRFQResponsesCmdImpl
extends TaskCommandImpl
implements AcceptRFQResponsesCmd

This is the default implementation of the AcceptRFQResponseCmd. This command uses the following AccessBeans:

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.utf.commands. AcceptRFQResponsesCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand
COPYRIGHT
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
AcceptRFQResponsesCmdImpl()
          Default Constructor.
 
Method Summary
 java.lang.Long getRfqId()
           
 java.lang.Long[] getRfqResponses()
           
 void performExecute()
          Sets the specified RFQ responses to the WON state.
 void reset()
          Reset the command.
 void setRfqId(java.lang.Long rfqId)
           
 void setRfqResponses(java.lang.Long[] responseIds)
           
 void validateParameters()
          Checks if the RFQ id and the response ids have been set.
 
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
 

Constructor Detail

AcceptRFQResponsesCmdImpl

public AcceptRFQResponsesCmdImpl()
Default Constructor.
Method Detail

reset

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

getRfqId

public java.lang.Long getRfqId()
Specified by:
getRfqId in interface AcceptRFQResponsesCmd
Returns:
The Long RFQ Id value of the responses.

getRfqResponses

public java.lang.Long[] getRfqResponses()
Specified by:
getRfqResponses in interface AcceptRFQResponsesCmd
Returns:
A Long array of response ids in which to accept.

performExecute

public void performExecute()
                    throws ECException
Sets the specified RFQ responses to the WON state.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException
See Also:

setRfqId

public void setRfqId(java.lang.Long rfqId)
Specified by:
setRfqId in interface AcceptRFQResponsesCmd
Parameters:
rfqId - The Long RFQ id for the reponses.

setRfqResponses

public void setRfqResponses(java.lang.Long[] responseIds)
Specified by:
setRfqResponses in interface AcceptRFQResponsesCmd
Parameters:
responseIds - A Long array of response ids in which to accept.

validateParameters

public void validateParameters()
                        throws ECException
Checks if the RFQ id and the response ids have been set.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException.
ECException