com.ibm.commerce.orderquotation.commands
Class OrderQuotationDisplayCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.ControllerCommandImpl
                    |
                    +--com.ibm.commerce.orderquotation.commands.OrderQuotationDisplayCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, OrderQuotationDisplayCmd

public class OrderQuotationDisplayCmdImpl
extends ControllerCommandImpl
implements OrderQuotationDisplayCmd

This is the default implementation of the OrderQuotationDisplay command.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          The IBM copyright string.
 
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.orderquotation.commands. OrderQuotationDisplayCmd
DEFAULT_ORDERQUOTATIONREL_ID, DEFAULT_OUT_ORDERQUOTATIONREL_ID_NAME, DEFAULT_VIEWNAME, defaultCommandClassName, NAME, VIEWNAME_PREFIX
 
Constructor Summary
OrderQuotationDisplayCmdImpl()
          Constructor for OrderQuotationDisplayCmdImpl.
 
Method Summary
  AccessVector getResources()
          Gets the access vector accessed by this command.
 void performExecute()
          Contains the actual business logic of the command It should be implemented by all the command writer.
 void reset()
          This method should be called after a command has been executed to reset its states variables.
 void setOrderQuotationRelAbbreviations(java.lang.String[] astrOrderQuotationRelAbbreviations)
          Sets the OrderQuotationRel objects whose quotation Orders should be displayed.
 void setOutOrderQuotationRelIdNames(java.lang.String[] astrOutOrderQuotationRelIdNames)
          Sets the names of name value pairs that should be provided to the View.
 void setRequestProperties( TypedProperty aRequestProperties)
          Sets the request properties.
protected  void setResponseProperties()
          Sets the response properties.
 void setViewName(java.lang.String astrViewName)
          Sets the View to be invoked.
 void validateParameters()
          Performs server side parameter checking.
 
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. 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
 

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

OrderQuotationDisplayCmdImpl

public OrderQuotationDisplayCmdImpl()
Constructor for OrderQuotationDisplayCmdImpl.
Method Detail

reset

public void reset()
Description copied from class: AbstractECTargetableCommand
This method should be called after a command has been executed to reset its states variables. After the call to reset, we should be able to execute the command again.
Overrides:
reset in class AbstractECTargetableCommand
See Also:
com.ibm.sfc.cmd.Command#reset()

setOrderQuotationRelAbbreviations

public void setOrderQuotationRelAbbreviations(java.lang.String[] astrOrderQuotationRelAbbreviations)
Description copied from interface: OrderQuotationDisplayCmd
Sets the OrderQuotationRel objects whose quotation Orders should be displayed.
Specified by:
setOrderQuotationRelAbbreviations in interface OrderQuotationDisplayCmd
Parameters:
astrOrderQuotationRelAbbreviations - the OrderQuotationRel abbreviations.
See Also:
OrderQuotationDisplayCmd.setOrderQuotationRelAbbreviations(String[])

setViewName

public void setViewName(java.lang.String astrViewName)
Description copied from interface: OrderQuotationDisplayCmd
Sets the View to be invoked. The name of the View must start with "OrderQuotationDisplay" (in order to prevent a malicious user from executing an arbitrary View while still allowing a Store developer to define as many Views as may be required).
Specified by:
setViewName in interface OrderQuotationDisplayCmd
Parameters:
astrViewName - the view name.
See Also:
OrderQuotationDisplayCmd.setViewName(String)

setOutOrderQuotationRelIdNames

public void setOutOrderQuotationRelIdNames(java.lang.String[] astrOutOrderQuotationRelIdNames)
Description copied from interface: OrderQuotationDisplayCmd
Sets the names of name value pairs that should be provided to the View. The values of the added name value pairs are the identifiers of the OrderQuotationRel objects whose parent and child Orders should be displayed.
Specified by:
setOutOrderQuotationRelIdNames in interface OrderQuotationDisplayCmd
Parameters:
astrOutOrderQuotationRelIdNames - the names of the output orderQuotationRelId name-value pairs.
See Also:
OrderQuotationDisplayCmd.setOutOrderQuotationRelIdNames(String[])

setRequestProperties

public void setRequestProperties(TypedProperty aRequestProperties)
                          throws ECException
Description copied from interface: ControllerCommand
Sets the request properties. The WebController calls this method before invoking the execute method in this command to set the request properties for this command. It is the responsibility of the implementer of the ControllerCommand to extract the required input parameters from the request properties and perform parameter checking.
Specified by:
setRequestProperties in interface ControllerCommand
Overrides:
setRequestProperties in class ControllerCommandImpl
Parameters:
aRequestProperties - the request properties.
Throws:
ECException
See Also:
ControllerCmd#setRequestProperties(TypedProperty)

validateParameters

public void validateParameters()
                        throws ECException
Description copied from interface: ECCommand
Performs server side parameter checking. This method replaces the checkParameters() method in a previous version of the code.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException
See Also:
ECCommand.validateParameters()

getResources

public AccessVector getResources()
                          throws ECException
Description copied from interface: ECCommand
Gets the access vector accessed by this command. The default implementation returns null indicating that no protectable resource is accessed by this command. It is the responsibilities of the command writer to return the protectable primary resource(s) and the corresponding actions accessed by this command.
Specified by:
getResources in interface ECCommand
Overrides:
getResources in class AbstractECTargetableCommand
Returns:
the AccessVector.
Throws:
ECException
See Also:
ECCommand.getResources()

setResponseProperties

protected void setResponseProperties()
                              throws ECException
Sets the response properties.
Throws:
ECException

performExecute

public void performExecute()
                    throws ECException
Description copied from interface: ECCommand
Contains the actual business logic of the command It should be implemented by all the command writer.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException
See Also:
ECCommand.performExecute()