com.ibm.commerce.order.commands
Class OrderProcessPreApprovalCmdImpl
com.ibm.commerce.order.commands.OrderProcessPreApprovalCmdImpl
- All Implemented Interfaces:
- AccCommand, ControllerCommand, ECCommand, OrderProcessPreApprovalCmd, Protectable
- public class OrderProcessPreApprovalCmdImpl
- implements OrderProcessPreApprovalCmd
Save the url parameters when an order is submitted.
Field Summary |
static java.lang.String |
COPYRIGHT
|
Method Summary |
protected TypedProperty |
extractKnownNVPs(TypedProperty req)
This is a helper method that extracts the NVPs from the request properties and returns the extracted the NVPs. |
protected java.lang.Long |
getOrderId()
Gets the order reference number. |
void |
performExecute()
It calls saveNVPs() to save the request properties to the database and then initalizes
the instance variable orderFlowEntityBean. |
protected void |
saveNVPs(OrderAccessBean orderAB)
This is a helper method that saves the NVPs from url to the Order Pay Info table and flow context. |
void |
setOrderId(java.lang.Long anOrderId)
Sets the id of the order. |
void |
setRequestProperties(TypedProperty reqParms)
The WebController calls the setRequestProperties method before invoking the execute method in this command. |
void |
setStateIdentifier(java.lang.Integer aStateIdentifier)
|
void |
validateParameters()
Checks the validity of the parameters. |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties |
COPYRIGHT
public static final java.lang.String COPYRIGHT
OrderProcessPreApprovalCmdImpl
public OrderProcessPreApprovalCmdImpl()
extractKnownNVPs
protected TypedProperty extractKnownNVPs(TypedProperty req)
throws ECException,
javax.naming.NamingException,
javax.ejb.FinderException,
java.rmi.RemoteException,
javax.ejb.CreateException
- This is a helper method that extracts the NVPs from the request properties and returns the extracted the NVPs.
getOrderId
protected java.lang.Long getOrderId()
- Gets the order reference number.
performExecute
public void performExecute()
throws ECException
- It calls saveNVPs() to save the request properties to the database and then initalizes
the instance variable orderFlowEntityBean.
- Specified by:
performExecute
in interface ECCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
saveNVPs
protected void saveNVPs(OrderAccessBean orderAB)
throws ECException,
javax.naming.NamingException,
javax.ejb.FinderException,
java.rmi.RemoteException,
javax.ejb.CreateException
- This is a helper method that saves the NVPs from url to the Order Pay Info table and flow context.
setOrderId
public void setOrderId(java.lang.Long anOrderId)
- Sets the id of the order.
setRequestProperties
public void setRequestProperties(TypedProperty reqParms)
throws ECApplicationException
- The WebController calls the setRequestProperties method before invoking the execute method in this command.
- Specified by:
setRequestProperties
in interface ControllerCommand
- Following copied from interface:
com.ibm.commerce.command.ControllerCommand
- Parameters:
requestProperties
- com.ibm.commerce.datatype.TypedProperty- Throws:
com.ibm.commerce.exception.ECException.
-
setStateIdentifier
public void setStateIdentifier(java.lang.Integer aStateIdentifier)
validateParameters
public void validateParameters()
throws ECException
- Checks the validity of the parameters.
The mandatory parameter is the orderId.
- Specified by:
validateParameters
in interface ECCommand
- Throws:
ECApplicationException
- with message key _ERR_ORDER_NOT_FOUND, if the order cannot be found in the database.