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:RFQAttachmentListBean
RFQAccessBean
AttachmentDataBean
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, 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
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String COPYRIGHT
public CreateTradeAttachmentCmdImpl()
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException.
ECException
ECCommand#performExecute()
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException.
ECException
ECCommand#validateParameters()
public java.lang.Long getAttachmentId()
public void setAttachmentId(java.lang.Long attachmentId)
setAttachmentId
in interface CreateTradeAttachmentCmd
attachmentId
- The attachmentId to setpublic java.lang.Long getTradingId()
public void setTradingId(java.lang.Long tradingId)
setTradingId
in interface CreateTradeAttachmentCmd
tradingId
- The tradingId to set