java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.rfq.commands.CreateTradeAttachmentCmdImpl
Implementation for associating an attachment object to a trading object.
This is the default implementation of the CreateTradeAttachmentCmd. This command calls the following TaskCommands:
This command uses the following AccessBeans/DataBeans:RFQAttachmentListBean
RFQAccessBean
AttachmentDataBean
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT COPYRIGHT |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.rfq.commands. CreateTradeAttachmentCmd |
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
CreateTradeAttachmentCmdImpl() Constructs a new TradeAttachmentCreateCmdImpl class instance. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public CreateTradeAttachmentCmdImpl()
Method Detail |
---|
public void reset()
reset
in class
AbstractECTargetableCommand
public void performExecute() throws ECException
performExecute
in interface
ECCommand
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