public class AttachmentUploadCmdImpl extends ControllerCommandImpl implements AttachmentUploadCmd
AttachmentUploadCmdImpl
is a URL command that:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field
|
defaultCommandClassName, NAME
Constructor and Description |
---|
AttachmentUploadCmdImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
needUnzip()
Whether or not the uploaded file should be unzipped.
|
void |
performExecute()
This method stores the uploaded file from the request properties into CMFILE table.
|
void |
setRequestProperties(TypedProperty req)
This method sets the input parameters from the request properties for the controller command.
|
void |
storeFile()
This method will retrieve the file from the stream and store the file's content into CMFILE table.
|
void |
validateParameters()
Validates the input parameters.
|
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, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, 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
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, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public void storeFile() throws ECException
ECException
- if the file has size zero or is too big or does not a valid file extension.public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- Any exception captured.public void setRequestProperties(TypedProperty req)
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
req
- The request properties.public void validateParameters() throws ECException
This implementation is the default one from the super class.
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- The exception will be thrown by the super class.public boolean needUnzip()