public class CreateTradeAttachmentCmdImpl extends TaskCommandImpl implements CreateTradeAttachmentCmd
This is the default implementation of the CreateTradeAttachmentCmd. This command calls the following TaskCommands:
This command uses the following AccessBeans/DataBeans:RFQAttachmentListBeanRFQAccessBeanAttachmentDataBean| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
CreateTradeAttachmentCmdImpl()
Constructs a new TradeAttachmentCreateCmdImpl class instances.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
getAttachmentId()
Gets the attachmentId
|
java.lang.Long |
getTradingId()
Gets the tradingId
|
void |
performExecute()
Create the association between the attachment and the trading agreement.
|
void |
reset()
Reset the command
|
void |
setAttachmentId(java.lang.Long attachmentId)
Sets the attachmentId
|
void |
setTradingId(java.lang.Long tradingId)
Sets the tradingId
|
void |
validateParameters()
Checks if the tradingId and attachmentId have been set, check if
trading agreement exist, and if attachment exist.
|
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 CreateTradeAttachmentCmdImpl()
public void reset()
reset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandpublic void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECException.ECExceptionECCommand#performExecute()public void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECException.ECExceptionECCommand#validateParameters()public java.lang.Long getAttachmentId()
public void setAttachmentId(java.lang.Long attachmentId)
setAttachmentId in interface CreateTradeAttachmentCmdattachmentId - The attachmentId to setpublic java.lang.Long getTradingId()
public void setTradingId(java.lang.Long tradingId)
setTradingId in interface CreateTradeAttachmentCmdtradingId - The tradingId to set