com.ibm.commerce.tools.optools.order.commands
Class OrderItemAttachmentViewCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.ControllerCommandImpl
                    |
                    +--com.ibm.commerce.command.AttachmentViewCmdImpl
                          |
                          +--com.ibm.commerce.tools.optools.order.commands.OrderItemAttachmentViewCmdImpl
All Implemented Interfaces:
AccCommand, AttachmentViewCmd, ControllerCommand, ECCommand, ECTargetableCommand, OrderItemAttachmentViewCmd

public class OrderItemAttachmentViewCmdImpl
extends AttachmentViewCmdImpl
implements OrderItemAttachmentViewCmd

This command is to retrieve the attachment object from the database and will render it for viewing from a browser. This command is intented for order item personalization attribute attachment view.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          The copyright statement.
 
Fields inherited from class com.ibm.commerce.command. ControllerCommandImpl
requestProperties, responseProperties, retriable, viewReqProperties
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.tools.optools.order.commands. OrderItemAttachmentViewCmd
defaultCommandClassName, NAME
 
Constructor Summary
OrderItemAttachmentViewCmdImpl()
           
 
Method Summary
 void performExecute()
          This method will call super.performExecute to perform the job.
 void validateParameters()
          Checks if the attachmentId has been set, and if specified attachment exist.
 
Methods inherited from class com.ibm.commerce.command. AttachmentViewCmdImpl
getAttachmentId, getBinaryStream, getFileSize, getMimeType, performAccessCheck, setAttachmentId, setRequestProperties
 
Methods inherited from class com.ibm.commerce.command. ControllerCommandImpl
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
 
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.commerce.command. AttachmentViewCmd
performAccessCheck, setAttachmentId
 
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, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
 

Field Detail
public static final java.lang.String COPYRIGHT
The copyright statement.
See Also:
Constant Field Values
Constructor Detail

OrderItemAttachmentViewCmdImpl

public OrderItemAttachmentViewCmdImpl()
Method Detail

performExecute

public void performExecute()
                    throws ECException
This method will call super.performExecute to perform the job. and uploaded the file
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AttachmentViewCmdImpl
Throws:
ECException

validateParameters

public void validateParameters()
                        throws ECException
Checks if the attachmentId has been set, and if specified attachment exist.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException.
ECException