com.ibm.commerce.command
Interface AttachmentViewCmd

All Superinterfaces:
AccCommand, ControllerCommand, ECCommand
All Known Subinterfaces:
OrderItemAttachmentViewCmd, RFQAttachmentViewCmd
All Known Implementing Classes:
AttachmentViewCmdImpl, OrderItemAttachmentViewCmdImpl, RFQAttachmentViewCmdImpl

public interface AttachmentViewCmd
extends ControllerCommand

AttachmentViewCmd retrieves the attachment content from database and return the stream as DirectView to browser. AttachmentViewCmdImpl is only intended to be extended and not used directly . The AttachmentViewCmdImpl is not registered in the URLREG or CMDREG


Field Summary
static java.lang.String COPYRIGHT
          IBM copyright notice field
static java.lang.String defaultCommandClassName
          default class name
 
Method Summary
 boolean performAccessCheck()
          Performs access control check to control who can view the attachment This method should be written by component that has refcmd extending AttachmentView
 void setAttachmentId(java.lang.String id)
          Sets the attachmentobj_id of the attachment object in database table to be retrieved
 
Methods inherited from interface com.ibm.commerce.command. ControllerCommand
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
 
Methods inherited from interface com.ibm.commerce.command. AccCommand
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command. ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM copyright notice field
See Also:
Constant Field Values

defaultCommandClassName

public static final java.lang.String defaultCommandClassName
default class name
See Also:
Constant Field Values
Method Detail

setAttachmentId

public void setAttachmentId(java.lang.String id)
Sets the attachmentobj_id of the attachment object in database table to be retrieved

performAccessCheck

public boolean performAccessCheck()
Performs access control check to control who can view the attachment This method should be written by component that has refcmd extending AttachmentView