java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.order.commands.GetCurrentPendingOrdersCmdImpl
Obtains a list of current pending orders for a Member. This command uses the following AccessBean:
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM Copyright notice field. |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.order.commands. GetCurrentPendingOrdersCmd |
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
GetCurrentPendingOrdersCmdImpl() |
Method Summary | |
---|---|
java.util.Enumeration |
getOrderList() Returns the list of current pending order identifiers. |
boolean |
getResult() Checks if the result is valid. |
void |
performExecute() Executes the main business logic of the command. |
void |
setMemberId(java.lang.Long aMemberId) Sets the identifier of the Member whose current pending Orders are to be retrieved. |
void |
setOrderByLastUpdate(boolean aOrderBy) Sets the flag to indicate that Orders should be retrieved in ascending sequence. |
void |
setStoreId(java.lang.Integer aStoreId) Sets the identifier of the Store that owns the pending Orders. |
void |
validateParameters() Checks mandatory parameters. |
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 |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public GetCurrentPendingOrdersCmdImpl()
Method Detail |
---|
public java.util.Enumeration getOrderList()
getOrderList
in interface
GetCurrentPendingOrdersCmd
Enumeration
of
OrderAccessBean
.public boolean getResult()
getResult
in interface
GetCurrentPendingOrdersCmd
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
public void setMemberId(java.lang.Long aMemberId)
setMemberId
in interface
GetCurrentPendingOrdersCmd
aMemberId
- mandatory. The identifier of the Member whose
current pending Orders are to be retrieved.public void setOrderByLastUpdate(boolean aOrderBy)
setOrderByLastUpdate
in interface
GetCurrentPendingOrdersCmd
aOrderBy
- optional. true
indicates that Orders
should be retrieved in ascending sequence of their lastUpdate timestamp
attribute values.public void setStoreId(java.lang.Integer aStoreId)
setStoreId
in interface
GetCurrentPendingOrdersCmd
aStoreId
- optional. If specified, only Orders owned by the
specified Store are retrieved.public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECException