public class RFQAttachmentViewCmdImpl extends AttachmentViewCmdImpl implements RFQAttachmentViewCmd
RFQAttachmentViewCmdImpl
will retrieve an attachment object
and return to a browser.
This is the default implementation of the RFQAttachmentViewCmd. This command uses the following AccessBeans:
defaultCommandClassName, NAME
Constructor and Description |
---|
RFQAttachmentViewCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getPAttrValueId()
Gets the PAttribute Value Id
|
AccessVector |
getResources()
Gets the access vector accessed by this command.
|
java.lang.Long |
getResponseId()
Gets the response Id
|
java.lang.Long |
getRfqId()
Gets the rfq Id
|
boolean |
isTradingAttachmentRelationFound(java.lang.Long tradingId,
java.lang.Long attachmentId)
Check if the trading attachment relationship is found.
|
void |
performExecute()
This method will call super.performExecute to perform the job
and uploaded the file.
|
void |
reset()
Reset the command
|
void |
setPAttrValueId(java.lang.Long newPAttrValueId)
Sets the PAttribute Value Id
|
void |
setRequestProperties(TypedProperty reqParms)
Calls super.RequestProperties to retrieve all the identifier.
|
void |
setResponseId(java.lang.Long newResponseId)
Sets the response Id
|
void |
setRfqId(java.lang.Long newRfqId)
Sets the rfq Id
|
void |
validateParameters()
Checks if the attachmentId has been set, and if specified
attachment exist.
|
performAccessCheck, setAttachmentId
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, 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
performAccessCheck, setAttachmentId
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
ECException
ECCommand#getResources()
public java.lang.Long getPAttrValueId()
public java.lang.Long getResponseId()
public java.lang.Long getRfqId()
public boolean isTradingAttachmentRelationFound(java.lang.Long tradingId, java.lang.Long attachmentId)
tradingId
- java.lang.LongattachmentId
- java.lang.Longpublic void setRequestProperties(TypedProperty reqParms) throws ECException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class AttachmentViewCmdImpl
com.ibm.commerce.datatype.TypedProperty
- request parametersECException
ControllerCmd#setRequestProperties(TypedProperty)
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AttachmentViewCmdImpl
ECException
ECCommand#performExecute()
public void setPAttrValueId(java.lang.Long newPAttrValueId)
newPAttrValueId
- The PAttribute Value Id to set.public void setResponseId(java.lang.Long newResponseId)
newResponseId
- The response Id to setpublic void setRfqId(java.lang.Long newRfqId)
newRfqId
- The rfqId to setpublic void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException.
ECException
ECCommand#validateParameters()