com.ibm.commerce.order.commands
Class OrderProcessPostApprovalCmdImpl

java.lang.Object
  BusinessFlowCmdImpl
      com.ibm.commerce.order.commands.OrderProcessApprovalBaseCmdImpl
          com.ibm.commerce.order.commands.OrderProcessPostApprovalCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, OrderProcessPostApprovalCmd, Protectable

public class OrderProcessPostApprovalCmdImpl
extends OrderProcessApprovalBaseCmdImpl
implements OrderProcessPostApprovalCmd

This command is called when the order is approved or the order does not require approval. It will call OrderProcessCmd to do the real order processing.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
IBM copyright notice field.
Fields inherited from interface com.ibm.commerce.order.commands.OrderProcessPostApprovalCmd
defaultCommandClassName, NAME
Constructor Summary
OrderProcessPostApprovalCmdImpl()
Method Summary
void performExecute()
It calls retrieveNVPs() to get the request properties saved in the OrderProcessPreApprovalCmd and calls OrderProcessCmd with the request property to do the order processing.
protected TypedProperty retrieveNVPs(OrderAccessBean orderAB, TypedProperty newReq)
This is a helper method that retrieves the NVPs from the Order Pay Info table.
Methods inherited from class com.ibm.commerce.order.commands.OrderProcessApprovalBaseCmdImpl
getEntityId, getEntityObject, getResources, mergeNVPs, reset, setOrderFlowEntityBean, setRequestProperties, setStateIdentifier, validateParameters
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
IBM copyright notice field.
See Also:
Constant Field Values
Constructor Detail

OrderProcessPostApprovalCmdImpl

public OrderProcessPostApprovalCmdImpl()
Method Detail

performExecute

public void performExecute()
                    throws ECException
It calls retrieveNVPs() to get the request properties saved in the OrderProcessPreApprovalCmd and calls OrderProcessCmd with the request property to do the order processing.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class OrderProcessApprovalBaseCmdImpl
Throws:
ECException

retrieveNVPs

protected TypedProperty retrieveNVPs(OrderAccessBean orderAB,
                                     TypedProperty newReq)
                              throws ECException,
                                     javax.naming.NamingException,
                                     FinderException,
                                     java.rmi.RemoteException,
                                     CreateException
This is a helper method that retrieves the NVPs from the Order Pay Info table.
Parameters:
orderAB - order access bean.
newReq - request properties.
Returns:
merged
Throws:
ECException
CreateException
FinderException
javax.naming.NamingException
java.rmi.RemoteException

Feedback