com.ibm.commerce.order.commands
Class GetCurrentPendingOrdersCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.order.commands.GetCurrentPendingOrdersCmdImpl
All Implemented Interfaces:
ECCommand, GetCurrentPendingOrdersCmd, TaskCommand

public class GetCurrentPendingOrdersCmdImpl
extends TaskCommandImpl
implements GetCurrentPendingOrdersCmd

Obtains the list of current pending orders


Field Summary
static java.lang.String COPYRIGHT
           
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.order.commands.GetCurrentPendingOrdersCmd
defaultCommandClassName, NAME
 
Constructor Summary
GetCurrentPendingOrdersCmdImpl()
           
 
Method Summary
 java.util.Enumeration getOrderList()
          Returns the list of current pending order ids.
 boolean getResult()
          Checks if the result is valid.
 void performExecute()
          Executes main business logic of the command.
 void setMemberId(java.lang.Long aMemberId)
          Sets the id of the member whose current pending orders are to be retrieved.
 void setOrderByLastUpdate(boolean aOrderBy)
          Sets the flag to indicate if orders to be retrieved in sequence of last update timestamp.
 void setStoreId(java.lang.Integer aStoreId)
          Sets the id of the store that owns the pending orders.
 void validateParameters()
          Checks mandatory parameters.
 
Methods inherited from class com.ibm.commerce.command.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, 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.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Constructor Detail

GetCurrentPendingOrdersCmdImpl

public GetCurrentPendingOrdersCmdImpl()
Method Detail

getOrderList

public java.util.Enumeration getOrderList()
Returns the list of current pending order ids.
Specified by:
getOrderList in interface GetCurrentPendingOrdersCmd
Following copied from interface: com.ibm.commerce.order.commands.GetCurrentPendingOrdersCmd
Returns:
The list of current pending order ids.

getResult

public boolean getResult()
Checks if the result is valid.
Specified by:
getResult in interface GetCurrentPendingOrdersCmd
Following copied from interface: com.ibm.commerce.order.commands.GetCurrentPendingOrdersCmd
Returns:
the result. A true value (default) means valid. A false value otherwise.

performExecute

public void performExecute()
                    throws ECException
Executes main business logic of the command.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
com.ibm.commerce.command.CommandException - The superclass for all ECExceptions.

setMemberId

public void setMemberId(java.lang.Long aMemberId)
Sets the id of the member whose current pending orders are to be retrieved.
Specified by:
setMemberId in interface GetCurrentPendingOrdersCmd
Following copied from interface: com.ibm.commerce.order.commands.GetCurrentPendingOrdersCmd
Parameters:
aMemberId - The reference number of the member whose current pending orders are to be retrieved.

setOrderByLastUpdate

public void setOrderByLastUpdate(boolean aOrderBy)
Sets the flag to indicate if orders to be retrieved in sequence of last update timestamp.
Specified by:
setOrderByLastUpdate in interface GetCurrentPendingOrdersCmd
Following copied from interface: com.ibm.commerce.order.commands.GetCurrentPendingOrdersCmd
Parameters:
aByLastUpdate - The indicator to decide if sequence is desired. A true value (default) means sequence is desired. A false value otherwise.

setStoreId

public void setStoreId(java.lang.Integer aStoreId)
Sets the id of the store that owns the pending orders.
Specified by:
setStoreId in interface GetCurrentPendingOrdersCmd
Following copied from interface: com.ibm.commerce.order.commands.GetCurrentPendingOrdersCmd
Parameters:
aStoreId - The reference number of the store that owns the pending orders.

validateParameters

public void validateParameters()
                        throws ECException
Checks mandatory parameters.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
ECException. -