public class CreateOrderCommentsTCCmdImpl extends TaskCommandImpl implements CreateOrderCommentsTCCmd
This command can be used to convert freeform terms and conditions input, during the course of a negotiation, into Terms and Conditions associated with a trading agreement. When an order results from a trading agreement, the OrderComment TCs will appear customer as comments in the prepared order.
Behaviour
The command loops through the list of freeform comments and does the following for each comment:
Exception conditions
| Modifier and Type | Field and Description |
|---|---|
java.util.Vector |
commentsVector
Comments Vector.
|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
java.lang.Long |
tradingId
Trading ID.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
CreateOrderCommentsTCCmdImpl()
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Vector |
getCommentsVector()
Retrieves a vector of freeform comments.
|
java.lang.Long |
getTradingId()
Retrieves the trading agreement ID.
|
void |
performExecute()
Creates one OrderComment TC for every incoming freeform comment.
|
void |
reset()
Reset the command.
|
void |
setCommentsVector(java.util.Vector newCommentsVector)
Stores the list of freeform comments that need to be converted into TCs.
|
void |
setTradingId(java.lang.Long newTradingId)
Stores the incoming trading agreement ID.
|
void |
validateParameters()
This method does the following:
Verifies that a comment list has been provided. Verifies that a trading agreement ID has been provided. Verifies that the provided trading agreement ID exists. |
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, 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, waitexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiespublic static final java.lang.String COPYRIGHT
public java.lang.Long tradingId
public java.util.Vector commentsVector
public CreateOrderCommentsTCCmdImpl()
public void reset()
reset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandpublic java.util.Vector getCommentsVector()
public java.lang.Long getTradingId()
public void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECApplicationException - If an application error occurs while creating the TC.ECSystemException - If a system error occurs while creating the TC.ECExceptionECCommand#performExecute()public void setCommentsVector(java.util.Vector newCommentsVector)
setCommentsVector in interface CreateOrderCommentsTCCmdnewCommentsVector - The list of freeform comments.public void setTradingId(java.lang.Long newTradingId)
setTradingId in interface CreateOrderCommentsTCCmdnewTradingId - The ID of the trading agreement.public void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECApplicationException - ECExceptionECCommand#validateParameters()