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:RFQAccessBean
RFQResponseListBean
RFQResponseDataBean
BusinessFlowEventData
BusinessFlowEvent
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, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public void reset()
reset
in interface com.ibm.websphere.command.Command
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
Move all losing response to LOST-NextRoundperformExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
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 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