java.lang.Object | +--BusinessFlowCmdImpl | +--com.ibm.commerce.order.commands.OrderProcessApprovalBaseCmdImpl | +--com.ibm.commerce.order.commands.OrderProcessPreApprovalCmdImpl
Save the url parameters when an order is submitted.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
Fields inherited from interface com.ibm.commerce.order.commands. OrderProcessPreApprovalCmd |
defaultCommandClassName,
NAME |
Constructor Summary | |
---|---|
OrderProcessPreApprovalCmdImpl() |
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 com.ibm.commerce.order.commands. OrderProcessApprovalBaseCmdImpl |
getEntityId,
getEntityObject,
getResources,
mergeNVPs,
reset,
setOrderFlowEntityBean |
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. 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 |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public OrderProcessPreApprovalCmdImpl()
Method Detail |
---|
protected TypedProperty extractKnownNVPs(TypedProperty req) throws ECException, javax.naming.NamingException, FinderException, java.rmi.RemoteException, CreateException
req
- request properties.ECException
CreateException
FinderException
javax.naming.NamingException
java.rmi.RemoteException
protected java.lang.Long getOrderId()
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
OrderProcessApprovalBaseCmdImpl
ECException
protected void saveNVPs(OrderAccessBean orderAB) throws ECException, javax.naming.NamingException, FinderException, java.rmi.RemoteException, CreateException
orderAB
- order access bean.ECException
CreateException
FinderException
javax.naming.NamingException
java.rmi.RemoteException
public void setOrderId(java.lang.Long anOrderId)
anOrderId
- order id.public void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
setRequestProperties
in interface
ControllerCommand
setRequestProperties
in class
OrderProcessApprovalBaseCmdImpl
reqParms
- request properties.
ECApplicationException
public void setStateIdentifier(java.lang.Integer aStateIdentifier)
setStateIdentifier
in class
OrderProcessApprovalBaseCmdImpl
aStateIdentifier
- state identifier.public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
OrderProcessApprovalBaseCmdImpl
ECApplicationException
- with message key _ERR_ORDER_NOT_FOUND, if
the order cannot be found in the database.ECException