java.lang.ObjectCacheableCommandImpl
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: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()
public void performExecute() throws ECException
public void validateParameters() throws ECException
public java.lang.Long getAttachmentId()
public void setAttachmentId(java.lang.Long attachmentId)
public java.lang.Long getTradingId()
public void setTradingId(java.lang.Long tradingId)
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.