public class RFQResponsePattributeAttachmentAddCmdImpl extends AttachmentUploadCmdImpl implements RFQResponsePattributeAttachmentAddCmd
RFQResponsePattributeAttachmentAddCmdImpl will upload a file
and associate the file to an RFQ response product personalization attribute.defaultCommandClassName, NAME| Constructor and Description |
|---|
RFQResponsePattributeAttachmentAddCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
AccessVector |
getResources()
Gets the access vector accessed by this command.
|
void |
performExecute()
Save the attachment to datastore, and associate the attachment to an RFQ.
|
void |
setRequestProperties(TypedProperty reqParms)
Calls super.setRequestProperties to retrieve the rfq Id and the attach file content.
After this, retrieve that attachment description. The WebController calls the setRequestProperties method before invoking the execute method in this command. |
void |
validateParameters()
Checks if the RFQ id has been set, and if specified RFQ exist.
|
getAttachmentId, getAttachusg_id, setAttachusg_id, setPersistDBgetAttachmentOwner, getAttachmentStream, getErrorURL, getFileName, getFileSize, getRootPath, getUrl, setErrorURL, setRefCmd, setRootPath, setUrlcheckPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttachmentOwner, getFileSizegetAttachmentId, setPersistDBgetAttachmentStream, getFileName, getUrlcheckPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiesaccessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwnercheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesfulfills, getOwnerpublic RFQResponsePattributeAttachmentAddCmdImpl()
public void setRequestProperties(TypedProperty reqParms) throws ECException
setRequestProperties in interface ControllerCommandsetRequestProperties in class AttachmentUploadCmdImplcom.ibm.commerce.datatype.TypedProperty - request parametersECExceptionContollerCommand#setRequestProperties()public void performExecute()
throws ECException
super.performExecute() for saving
Calls TradeAttachmentCreateCmd.execute() for creating the association
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AttachmentUploadCmdImplECExceptionControllerComand#performExecutepublic void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class UploadToStreamCmdImplECException.ECException -
Thrown with the message ECMessage._ERR_UPLOAD_MISSING_REFCMD when refcmd is missing from the <instance_name>.xml file attachment configuration section.
Thrown with the message ECMessage._ERR_UPLOAD_FILECONTENTTYPE_NOTALLOWED when the contenttype of the upload file does not match the file extension.
Thrown with the message ECMessage._ERR_UPLOAD_FILETYPE_NOTALLOWED when the file type is not contained in supportedfileextension as specified in the attachment configuration.
Thrown with the message ECMessage._ERR_UPLOAD_FILESIZE_TOOBIG when the filesize exceeds the maximum allowable size in the attachment configuration section of the <instance_name>.xml file.
public AccessVector getResources() throws ECException
getResources in interface ECCommandgetResources in class AbstractECTargetableCommandECException