com.ibm.commerce.utf.commands
Class CloseRFQCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.utf.commands.CloseRFQCmdImpl
All Implemented Interfaces:
CloseRFQCmd, ECCommand, TaskCommand

public class CloseRFQCmdImpl
extends TaskCommandImpl
implements CloseRFQCmd

TaskCommand class implementation for closing RFQs

See Also:


Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.utf.commands.CloseRFQCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Constructor Summary
CloseRFQCmdImpl()
          Creates a new CloseRFQCmdImpl instance.
 
Method Summary
 AccessVector getResources()
          Gets the access vector accessed by this command.
 java.lang.Long[] getRfqIds()
          The RFQ ids to be closed.
 void performExecute()
          Closes the RFQs and sets all corresponding responses to the in evaluation state.
 void setRfqIds(java.lang.Long[] rfqIds)
          Sets the RFQ ids to be closed.
 void validateParameters()
          Checks if the RFQ list of ids has been set, if the specified RFQs exist, and if the specified RFQs can be closed.
 
Methods inherited from class com.ibm.commerce.command.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, 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.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 

Constructor Detail

CloseRFQCmdImpl

public CloseRFQCmdImpl()
Creates a new CloseRFQCmdImpl instance.
Method Detail

getResources

public AccessVector getResources()
                          throws ECException
Gets the access vector accessed by this command. The vector includes all the RFQs to be closed and all corresponding responses.

Specified by:
getResources in interface ECCommand
Overrides:
getResources in class AbstractECCommand
Returns:
AccessVector - a vector of resource action pairs

getRfqIds

public java.lang.Long[] getRfqIds()
The RFQ ids to be closed.

Specified by:
getRfqIds in interface CloseRFQCmd
Returns:
The array of RFQ id Long values to be closed.

performExecute

public void performExecute()
                    throws ECException
Closes the RFQs and sets all corresponding responses to the in evaluation state.

Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECCommand
Throws:
ECException. -  
See Also:


setRfqIds

public void setRfqIds(java.lang.Long[] rfqIds)
Sets the RFQ ids to be closed.

Specified by:
setRfqIds in interface CloseRFQCmd
Parameters:
rfqIds - A Long array of RFQ ids to be closed.

validateParameters

public void validateParameters()
                        throws ECException
Checks if the RFQ list of ids has been set, if the specified RFQs exist, and if the specified RFQs can be closed.

Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECCommand
Throws:
ECException. -