java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.rfq.commands.RFQCreateForNextRoundCmdImpl
Implemetation for creating the next round RFQ.
This is the default implementation of the RFQCreateForNextRoundCmd. This command calls the following TaskCommands:
CopyRFQCmd
CopyRFQAttachmentCmd
RFQAccessBean
RFQResponseListBean
RFQResponseDataBean
BusinessFlowEventData
BusinessFlowEvent
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field |
protected
AccessVector |
iResourcelist Access Vector |
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.rfq.commands. RFQCreateForNextRoundCmd |
defaultCommandClassName,
NAME |
Constructor Summary | |
---|---|
RFQCreateForNextRoundCmdImpl() |
Method Summary | |
---|---|
boolean |
getCopyAttachment() Gets the copyAttachment |
java.lang.Long |
getNewRfqId() Gets the newRfqId |
java.lang.String |
getNewRfqName() Gets the newRfqName |
AccessVector |
getResources()
Gets the access vector accessed by this command. |
java.lang.Long |
getSourceRfqId() Gets the sourceRfqId |
void |
performExecute() Move the RFQ from close state to next round state. |
void |
reset() Reset the command |
void |
setCopyAttachment(boolean copyAttachment) Sets the copyAttachment |
void |
setNewRfqId(java.lang.Long newRfqId) Sets the newRfqId |
void |
setNewRfqName(java.lang.String newRfqName) Sets the newRfqName |
void |
setSourceRfqId(java.lang.Long sourceRfqId) Sets the sourceRfqId |
void |
validateParameters() Checks if the source RFQ id has been set, and if specified RFQ exist. |
Methods inherited from class com.ibm.commerce.command. ControllerCommandImpl |
checkPermission,
fulfills,
getForUserId,
getGeneric,
getOwner,
getRequestProperties,
getResolvedRequestProperties,
getResourceOwners,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setForUserId,
setGeneric,
setOwner,
setRequestProperties,
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,
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,
setRequestProperties,
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,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
protected AccessVector iResourcelist
Constructor Detail |
---|
public RFQCreateForNextRoundCmdImpl()
Method Detail |
---|
public void reset()
reset
in class
AbstractECTargetableCommand
public AccessVector getResources() throws ECException
getResources
in interface
ECCommand
getResources
in class
AbstractECTargetableCommand
ECException
ECCommand.getResources()
public void performExecute() throws ECException
CopyRFQCmd
task command to create the next round RFQ Set the new
RFQ state to draft If copyAttachment is true Calls the
CopyRFQAttachmentCmd
to copy all attachments. For all the
responses, Move all winning response to WON-NextRound state Mave all losing
response to LOST-NextRound
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
ECCommand.performExecute()
public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECException.
ECException
ECCommand.validateParameters()
public boolean getCopyAttachment()
public void setCopyAttachment(boolean copyAttachment)
copyAttachment
- The copyAttachment to setpublic java.lang.Long getNewRfqId()
public void setNewRfqId(java.lang.Long newRfqId)
newRfqId
- The newRfqId to setpublic java.lang.String getNewRfqName()
public void setNewRfqName(java.lang.String newRfqName)
newRfqName
- The newRfqName to setpublic java.lang.Long getSourceRfqId()
public void setSourceRfqId(java.lang.Long sourceRfqId)
sourceRfqId
- The sourceRfqId to set