|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.orderitems.commands.OrderItemDisplayCmdImpl
Display a list of order items with pending order status.
Behavior
If the addressId is set, the command only displays order items with this shipping address.
For each order item in the list, the command does the following:
View Task
If the addressId is set, it calls OrderItemDisplayViewShiptoDsp view task, otherwise it calls OrderItemDisplayViewShiptoAssoc view task.
Field Summary | |
static java.lang.String |
COPYRIGHT
|
protected com.ibm.commerce.orderitems.commands.ATPParameters |
iATPParms
|
protected java.util.Hashtable |
ihsATPParmsDefaults
|
protected java.util.Vector |
iOrderIdList
|
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.orderitems.commands.OrderItemDisplayCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
OrderItemDisplayCmdImpl()
|
Method Summary | |
protected java.lang.Long |
getAddressId()
Gets the input parameter addressId. |
com.ibm.commerce.fulfillment.commands.ATPParameters |
getATPParms()
Gets the input ATP parameters. |
protected java.lang.String[] |
getOrderIds()
Return a list of ids of the orders which are displayed. |
AccessVector |
getResources()
Gets the access vector accessed by this command. |
boolean |
isReadyToCallExecute()
isReadyToCallExecute method is called by the Targettable Command frame work before the execution of the 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 |
setAddressId(java.lang.Long addressId)
Sets the id of the address book entry for the items to display (optional). |
void |
setATPParms(com.ibm.commerce.fulfillment.commands.ATPParameters newATPParms)
Set the ATP parameters. |
void |
setOrderId(java.lang.String[] numbers)
Specifies zero or more order ids (optional). |
void |
setOutOrderName(java.lang.String[] names)
Specifies the names of the name-value pairs to be added to the response object passed to the command's view task. |
void |
setRequestProperties(TypedProperty aRequestProperties)
The WebController calls this method before invoking the execute method in this command to set the request properties for this command. |
void |
validateParameters()
Performs server side parameter checking. |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
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, setAccCheck, setForUserId, setOwner |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
public static final java.lang.String COPYRIGHT
protected com.ibm.commerce.orderitems.commands.ATPParameters iATPParms
protected java.util.Hashtable ihsATPParmsDefaults
protected java.util.Vector iOrderIdList
Constructor Detail |
public OrderItemDisplayCmdImpl()
Method Detail |
protected java.lang.Long getAddressId()
public com.ibm.commerce.fulfillment.commands.ATPParameters getATPParms()
protected java.lang.String[] getOrderIds()
public AccessVector getResources() throws ECException
ECCommand
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
com.ibm.commerce.command.ECCommand
public boolean isReadyToCallExecute()
AbstractECTargetableCommand
isReadyToCallExecute
in class AbstractECTargetableCommand
com.ibm.commerce.command.AbstractECTargetableCommand
public void performExecute() throws ECException
ECCommand
performExecute
in interface ECCommand
performExecute
in class AbstractECTargetableCommand
com.ibm.commerce.command.ECCommand
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.public void reset()
AbstractECTargetableCommand
reset
in class AbstractECTargetableCommand
public void setAddressId(java.lang.Long addressId)
setAddressId
in interface OrderItemDisplayCmd
public void setATPParms(com.ibm.commerce.fulfillment.commands.ATPParameters newATPParms)
public void setOrderId(java.lang.String[] numbers)
setOrderId
in interface OrderItemDisplayCmd
public void setOutOrderName(java.lang.String[] names)
setOutOrderName
in interface OrderItemDisplayCmd
public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
ControllerCommand
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
com.ibm.commerce.command.ControllerCommand
requestProperties
- com.ibm.commerce.datatype.TypedPropertycom.ibm.commerce.exception.ECException.
- public void validateParameters() throws ECException
ECCommand
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
com.ibm.commerce.command.ECCommand
ECException.
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |