public class AttachmentViewCmdImpl extends ControllerCommandImpl implements AttachmentViewCmd
DirectView object if attachmentURL is same as attachment_id.
If attachmentURL is not the same as attachment_id, it will be assumed that the attachment is
not stored as BLOB in the attachment table in the database. We will open up the file as specified in
attachmenturl and return the stream as a DirectView object to the browser.
AttachmentViewCmdImpl is only intended to be extended and not used directly.
AttachmentViewCmdImpl is not registered in the URL configuration or the command configuration.defaultCommandClassName| Constructor and Description |
|---|
AttachmentViewCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
performAccessCheck()
This method implements access control checking.
|
void |
performExecute()
This method defines the business logic of this command.
|
void |
setAttachmentId(java.lang.String id)
This method sets the
attachmentobj_id of the attachment object in database table. |
void |
setRequestProperties(TypedProperty reqParms)
This method sets the request properties.
|
checkPermission, 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, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParametersexecuteFromCache, 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, waitcheckPermission, 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, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParametersfulfills, getOwnerpublic void setAttachmentId(java.lang.String id)
attachmentobj_id of the attachment object in database table.setAttachmentId in interface AttachmentViewCmdid - This is a String object representing the attachmentobj_id.public void setRequestProperties(TypedProperty reqParms) throws ECException
setRequestProperties in interface ControllerCommandsetRequestProperties in class ControllerCommandImplreqParms - This is a TypedProperty object that represents the request properties.ECExceptionpublic void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionpublic boolean performAccessCheck()
performAccessCheck in interface AttachmentViewCmdboolean value of true.