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, 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, validateParameters
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, validateParameters
fulfills, getOwner
public void setAttachmentId(java.lang.String id)
attachmentobj_id
of the attachment object in database table.setAttachmentId
in interface AttachmentViewCmd
id
- This is a String
object representing the attachmentobj_id
.public void setRequestProperties(TypedProperty reqParms) throws ECException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
reqParms
- This is a TypedProperty
object that represents the request properties.ECException
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public boolean performAccessCheck()
performAccessCheck
in interface AttachmentViewCmd
boolean
value of true
.