com.ibm.commerce.utf.commands
Class CancelRFQCmdImpl

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

public class CancelRFQCmdImpl
extends TaskCommandImpl
implements CancelRFQCmd

TaskCommand class implementation for canceling RFQs.

See Also:


Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.utf.commands.CancelRFQCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Constructor Summary
CancelRFQCmdImpl()
          Creates a new CancelRFQCmdImpl instance.
 
Method Summary
 AccessVector getResources()
          Gets the access vector accessed by this command.
 java.lang.Long[] getRfqIds()
          The RFQ ids to be canceled.
 void performExecute()
          Cancels the RFQs and sets all corresponding responses to the CANCELED state.
 void setRfqIds(java.lang.Long[] rfqIds)
          Sets the RFQ ids to be canceled.
 void validateParameters()
          Checks if the RFQ list of ids has been set, if specified RFQ exist, and if the specified RFQs can be canceled.
 
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

CancelRFQCmdImpl

public CancelRFQCmdImpl()
Creates a new CancelRFQCmdImpl 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 canceled.

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 canceled.

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

performExecute

public void performExecute()
                    throws ECException
Cancels the RFQs and sets all corresponding responses to the CANCELED 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 canceled.

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

validateParameters

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

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