com.ibm.commerce.rfq.commands
Class CreateTradeAttachmentCmdImpl
- java.lang.Object
-
- com.ibm.websphere.command.TargetableCommandImpl
-
- com.ibm.websphere.command.CacheableCommandImpl
-
- com.ibm.commerce.command.MeasuredCacheableCommandImpl
-
- com.ibm.commerce.command.AbstractECTargetableCommand
-
- com.ibm.commerce.command.TaskCommandImpl
-
- com.ibm.commerce.rfq.commands.CreateTradeAttachmentCmdImpl
-
- All Implemented Interfaces:
- com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, CreateTradeAttachmentCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable
public class CreateTradeAttachmentCmdImpl extends TaskCommandImpl implements CreateTradeAttachmentCmd
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
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
COPYRIGHT
IBM copyright notice field.-
Fields inherited from interface com.ibm.commerce.rfq.commands.CreateTradeAttachmentCmd
defaultCommandClassName, NAME
-
-
Constructor Summary
Constructors Constructor and Description CreateTradeAttachmentCmdImpl()
Constructs a new TradeAttachmentCreateCmdImpl class instances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Long
getAttachmentId()
Gets the attachmentIdjava.lang.Long
getTradingId()
Gets the tradingIdvoid
performExecute()
Create the association between the attachment and the trading agreement.void
reset()
Reset the commandvoid
setAttachmentId(java.lang.Long attachmentId)
Sets the attachmentIdvoid
setTradingId(java.lang.Long tradingId)
Sets the tradingIdvoid
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, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
-
Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
-
Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.websphere.command.CacheableCommand
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
-
Methods inherited from interface com.ibm.websphere.command.TargetableCommand
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
-
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
IBM copyright notice field.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CreateTradeAttachmentCmdImpl
public CreateTradeAttachmentCmdImpl()
Constructs a new TradeAttachmentCreateCmdImpl class instances.
-
-
Method Detail
-
reset
public void reset()
Reset the command- Specified by:
reset
in interfacecom.ibm.websphere.command.Command
- Overrides:
reset
in classAbstractECTargetableCommand
-
performExecute
public void performExecute() throws ECException
Create the association between the attachment and the trading agreement.- Specified by:
performExecute
in interfaceECCommand
- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Overrides:
performExecute
in classAbstractECTargetableCommand
- Throws:
ECException.
ECException
- See Also:
ECCommand#performExecute()
-
validateParameters
public void validateParameters() throws ECException
Checks if the tradingId and attachmentId have been set, check if trading agreement exist, and if attachment exist.- Specified by:
validateParameters
in interfaceECCommand
- Overrides:
validateParameters
in classAbstractECTargetableCommand
- Throws:
ECException.
ECException
- See Also:
ECCommand#validateParameters()
-
getAttachmentId
public java.lang.Long getAttachmentId()
Gets the attachmentId- Returns:
- Returns a Long
-
setAttachmentId
public void setAttachmentId(java.lang.Long attachmentId)
Sets the attachmentId- Specified by:
setAttachmentId
in interfaceCreateTradeAttachmentCmd
- Parameters:
attachmentId
- The attachmentId to set
-
getTradingId
public java.lang.Long getTradingId()
Gets the tradingId- Returns:
- Returns a Long
-
setTradingId
public void setTradingId(java.lang.Long tradingId)
Sets the tradingId- Specified by:
setTradingId
in interfaceCreateTradeAttachmentCmd
- Parameters:
tradingId
- The tradingId to set
-
-