com.ibm.commerce.rfq.commands
Class RFQAttachmentViewCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.ControllerCommandImpl
                    |
                    +--com.ibm.commerce.command.AttachmentViewCmdImpl
                          |
                          +--com.ibm.commerce.rfq.commands.RFQAttachmentViewCmdImpl
All Implemented Interfaces:
AccCommand, AttachmentViewCmd, ControllerCommand, ECCommand, ECTargetableCommand, RFQAttachmentViewCmd

public class RFQAttachmentViewCmdImpl
extends AttachmentViewCmdImpl
implements RFQAttachmentViewCmd

The RFQAttachmentViewCmdImpl will retreieve an attachment object then return to a browser.

This is the default implementation of the RFQAttachmentViewCmd. This command uses the following AccessBeans:

See Also:
Serialized Form

Field Summary
 
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.rfq.commands. RFQAttachmentViewCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand
COPYRIGHT
 
Constructor Summary
RFQAttachmentViewCmdImpl()
           
 
Method Summary
 java.lang.Long getPAttrValueId()
          Gets the PAttribute Value Id
  AccessVector getResources()           Gets the access vector accessed by this command.
 java.lang.Long getResponseId()
          Gets the response Id
 java.lang.Long getRfqId()
          Gets the rfq Id
 boolean isTradingAttachmentRelationFound(java.lang.Long tradingId, java.lang.Long attachmentId)
          Check if the trading attachment relationship is found.
 void performExecute()
          This method will call super.performExecute to perform the job.
 void reset()
          Reset the command
 void setPAttrValueId(java.lang.Long newPAttrValueId)
          Sets the PAttribute Value Id
 void setRequestProperties( TypedProperty reqParms)           Calls super.RequestProperties to retrieve all the identifier.
 void setResponseId(java.lang.Long newResponseId)
          Sets the response Id
 void setRfqId(java.lang.Long newRfqId)
          Sets the rfq Id
 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
 
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, getStoreId, getUser, getUserId, isReadyToCallExecute, 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, 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, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
 

Constructor Detail

RFQAttachmentViewCmdImpl

public RFQAttachmentViewCmdImpl()
Method Detail

reset

public void reset()
Reset the command
Overrides:
reset in class AbstractECTargetableCommand

getResources

public AccessVector getResources()
                          throws ECException
Gets the access vector accessed by this command.
Specified by:
getResources in interface ECCommand
Overrides:
getResources in class AbstractECTargetableCommand
Returns:
AccessVector - a vector of resource action pairs
Throws:
ECException
See Also:
ECCommand.getResources()

getPAttrValueId

public java.lang.Long getPAttrValueId()
Gets the PAttribute Value Id
Returns:
Returns a Long

getResponseId

public java.lang.Long getResponseId()
Gets the response Id
Returns:
Returns a Long

getRfqId

public java.lang.Long getRfqId()
Gets the rfq Id
Returns:
Returns a Long

isTradingAttachmentRelationFound

public boolean isTradingAttachmentRelationFound(java.lang.Long tradingId,
                                                java.lang.Long attachmentId)
Check if the trading attachment relationship is found.
Parameters:
tradingId - java.lang.Long
attachmentId - java.lang.Long
Returns:
boolean

setRequestProperties

public void setRequestProperties(TypedProperty reqParms)
                          throws ECException
Calls super.RequestProperties to retrieve all the identifier.
Specified by:
setRequestProperties in interface ControllerCommand
Overrides:
setRequestProperties in class AttachmentViewCmdImpl
Parameters:
reqParms - request properties
Throws:
ECException
See Also:
ControllerCmd#setRequestProperties(TypedProperty)

performExecute

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

setPAttrValueId

public void setPAttrValueId(java.lang.Long newPAttrValueId)
Sets the PAttribute Value Id
Parameters:
newPAttrValueId - The PAttribute Value Id to set

setResponseId

public void setResponseId(java.lang.Long newResponseId)
Sets the response Id
Parameters:
newResponseId - The response Id to set

setRfqId

public void setRfqId(java.lang.Long newRfqId)
Sets the rfq Id
Parameters:
newRfqId - The rfqId to set

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
See Also:
ECCommand.validateParameters()