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, Protectable, 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
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.ControllerCommand |
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
RFQAttachmentViewCmdImpl
public RFQAttachmentViewCmdImpl()
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
-
- 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()
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.