com.ibm.commerce.order.commands
Class GetCurrentPendingOrdersCmdImpl

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

public class GetCurrentPendingOrdersCmdImpl
extends TaskCommandImpl
implements GetCurrentPendingOrdersCmd

Obtains a list of current pending orders for a Member. This command uses the following AccessBean:

See Also:
Serialized Form

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
IBM Copyright notice field.
See Also:
Constant Field Values
Constructor Detail

GetCurrentPendingOrdersCmdImpl

public GetCurrentPendingOrdersCmdImpl()
Method Detail

getOrderList

public java.util.Enumeration getOrderList()
Returns the list of current pending order identifiers.
Specified by:
getOrderList in interface GetCurrentPendingOrdersCmd
Returns:
Enumeration of OrderAccessBean.

getResult

public boolean getResult()
Checks if the result is valid.
Specified by:
getResult in interface GetCurrentPendingOrdersCmd
Returns:
true indicates the performExecute method has completed successfully.

performExecute

public void performExecute()
                    throws ECException
Executes the main business logic of the command.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
ECException

setMemberId

public void setMemberId(java.lang.Long aMemberId)
Sets the identifier of the Member whose current pending Orders are to be retrieved.
Specified by:
setMemberId in interface GetCurrentPendingOrdersCmd
Parameters:
aMemberId - mandatory. The identifier of the Member whose current pending Orders are to be retrieved.

setOrderByLastUpdate

public void setOrderByLastUpdate(boolean aOrderBy)
Sets the flag to indicate that Orders should be retrieved in ascending sequence.
Specified by:
setOrderByLastUpdate in interface GetCurrentPendingOrdersCmd
Parameters:
aOrderBy - optional. true indicates that Orders should be retrieved in ascending sequence of their lastUpdate timestamp attribute values.

setStoreId

public void setStoreId(java.lang.Integer aStoreId)
Sets the identifier of the Store that owns the pending Orders.
Specified by:
setStoreId in interface GetCurrentPendingOrdersCmd
Parameters:
aStoreId - optional. If specified, only Orders owned by the specified Store are retrieved.

validateParameters

public void validateParameters()
                        throws ECException
Checks mandatory parameters.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
ECException