com.ibm.commerce.order.commands
Class OrderProcessPreApprovalCmdImpl
java.lang.Object
BusinessFlowCmdImpl
com.ibm.commerce.order.commands.OrderProcessApprovalBaseCmdImpl
com.ibm.commerce.order.commands.OrderProcessPreApprovalCmdImpl
- All Implemented Interfaces:
- AccCommand, ControllerCommand, ECCommand, OrderProcessPreApprovalCmd, Protectable
- public class OrderProcessPreApprovalCmdImpl
- extends OrderProcessApprovalBaseCmdImpl
- implements OrderProcessPreApprovalCmd
Save the url parameters when an order is submitted.
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
COPYRIGHT
IBM copyright notice field. |
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)
Sets the state identifier. |
void |
validateParameters()
Checks the validity of the parameters. |
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, setRetriable, setViewInputProperties |
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 |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- IBM copyright notice field.
- See Also:
- Constant Field Values
OrderProcessPreApprovalCmdImpl
public OrderProcessPreApprovalCmdImpl()
extractKnownNVPs
protected TypedProperty extractKnownNVPs(TypedProperty req)
throws ECException,
javax.naming.NamingException,
FinderException,
java.rmi.RemoteException,
CreateException
- This is a helper method that extracts the NVPs from the request properties and returns the extracted the NVPs.
-
- Parameters:
- req - request properties.
- Returns:
- the request properties without the known NVPs.
- Throws:
- ECException
- CreateException
- FinderException
- javax.naming.NamingException
- java.rmi.RemoteException
getOrderId
protected java.lang.Long getOrderId()
- Gets the order reference number.
-
- Returns:
- order id.
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
- Overrides:
- performExecute in class OrderProcessApprovalBaseCmdImpl
-
- Throws:
- ECException
saveNVPs
protected void saveNVPs(OrderAccessBean orderAB)
throws ECException,
javax.naming.NamingException,
FinderException,
java.rmi.RemoteException,
CreateException
- This is a helper method that saves the NVPs from url to the Order Pay Info table and flow context.
-
- Parameters:
- orderAB - order access bean.
- Throws:
- ECException
- CreateException
- FinderException
- javax.naming.NamingException
- java.rmi.RemoteException
setOrderId
public void setOrderId(java.lang.Long anOrderId)
- Sets the id of the order.
-
- Parameters:
- anOrderId - order id.
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
- Overrides:
- setRequestProperties in class OrderProcessApprovalBaseCmdImpl
-
- Parameters:
- reqParms - request properties.
- Throws:
- ECApplicationException
setStateIdentifier
public void setStateIdentifier(java.lang.Integer aStateIdentifier)
- Sets the state identifier.
-
- Overrides:
- setStateIdentifier in class OrderProcessApprovalBaseCmdImpl
-
- Parameters:
- aStateIdentifier - state identifier.
validateParameters
public void validateParameters()
throws ECException
- Checks the validity of the parameters. The mandatory parameter is the orderId.
-
- Specified by:
- validateParameters in interface ECCommand
- Overrides:
- validateParameters in class OrderProcessApprovalBaseCmdImpl
-
- Throws:
- ECApplicationException - with message key _ERR_ORDER_NOT_FOUND, if the order cannot be found in the database.
- ECException
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.