com.ibm.commerce.order.commands
Class SetCurrentPendingOrdersCmdImpl

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

public class SetCurrentPendingOrdersCmdImpl
extends TaskCommandImpl
implements SetCurrentPendingOrdersCmd

Sets the input pending orders to be current


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.SetCurrentPendingOrdersCmd
defaultCommandClassName, NAME
 
Constructor Summary
SetCurrentPendingOrdersCmdImpl()
           
 
Method Summary
 boolean getResult()
          Checks if the result is valid.
 boolean isReadyToCallExecute()
          Executes the command.
 void performExecute()
          Executes main business logic of the command.
 void setMemberId(java.lang.Long aMemberId)
          Sets the id of the member whose pending orders are to be set current.
 void setOrderList(java.util.Enumeration aOrdList)
          Sets the list of the pending orders to be set current.
 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, 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

SetCurrentPendingOrdersCmdImpl

public SetCurrentPendingOrdersCmdImpl()
Method Detail

getResult

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

isReadyToCallExecute

public boolean isReadyToCallExecute()
Executes the command.
Overrides:
isReadyToCallExecute in class AbstractECCommand
Following copied from class: com.ibm.commerce.command.AbstractECCommand
Returns:
boolean - true if we can execute the command false if we canot execute the command

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 pending orders are to be set current.
Specified by:
setMemberId in interface SetCurrentPendingOrdersCmd
Following copied from interface: com.ibm.commerce.order.commands.SetCurrentPendingOrdersCmd
Parameters:
aMemberId - The reference number of the member whose pending orders are to be set current.

setOrderList

public void setOrderList(java.util.Enumeration aOrdList)
Sets the list of the pending orders to be set current.
Specified by:
setOrderList in interface SetCurrentPendingOrdersCmd
Following copied from interface: com.ibm.commerce.order.commands.SetCurrentPendingOrdersCmd
Parameters:
aOrdList - The enumeration of the pending orders to be set current.

setStoreId

public void setStoreId(java.lang.Integer aStoreId)
Sets the id of the store that owns the pending orders.
Specified by:
setStoreId in interface SetCurrentPendingOrdersCmd
Following copied from interface: com.ibm.commerce.order.commands.SetCurrentPendingOrdersCmd
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. -