public class RFQCreateForNextRoundCmdImpl extends ControllerCommandImpl implements RFQCreateForNextRoundCmd
This is the default implementation of the RFQCreateForNextRoundCmd. This command calls the following TaskCommands:
This command uses the following AccessBeans/DataBeans:RFQAccessBeanRFQResponseListBeanRFQResponseDataBeanBusinessFlowEventDataBusinessFlowEvent| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
RFQCreateForNextRoundCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
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 newCopyAttachment)
Sets the copyAttachment
|
void |
setNewRfqId(java.lang.Long newNewRfqId)
Sets the newRfqId
|
void |
setNewRfqName(java.lang.String newNewRfqName)
Sets the newRfqName
|
void |
setSourceRfqId(java.lang.Long newSourceRfqId)
Sets the sourceRfqId
|
void |
validateParameters()
Checks if the source RFQ id has been set, and if specified RFQ exist.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setRequestProperties, setResponseProperties, setRetriable, setViewInputPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiesaccessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwnercheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesfulfills, getOwnerpublic static final java.lang.String COPYRIGHT
public void reset()
reset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandpublic AccessVector getResources() throws ECException
getResources in interface ECCommandgetResources in class AbstractECTargetableCommandECExceptionECCommand#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
Move all losing response to LOST-NextRoundperformExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionECCommand#performExecute()public void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECException.ECExceptionECCommand#validateParameters()public boolean getCopyAttachment()
public void setCopyAttachment(boolean newCopyAttachment)
newCopyAttachment - The copyAttachment to setpublic java.lang.Long getNewRfqId()
public void setNewRfqId(java.lang.Long newNewRfqId)
newNewRfqId - The newRfqId to setpublic java.lang.String getNewRfqName()
public void setNewRfqName(java.lang.String newNewRfqName)
newNewRfqName - The newRfqName to setpublic java.lang.Long getSourceRfqId()
public void setSourceRfqId(java.lang.Long newSourceRfqId)
newSourceRfqId - The sourceRfqId to set