java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.messaging.commands.OrderStatusCmdImpl
The implementation of the OrderStatus command (see interface for a detailed description of the OrderStatus command)
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT The internal copyright field. |
static java.lang.String |
UPDATEMODE_COMPLETE The complete update mode |
static java.lang.String |
UPDATEMODE_PARTIAL The partial update mode |
Fields inherited from class com.ibm.commerce.command. ControllerCommandImpl |
requestProperties,
responseProperties,
retriable,
viewReqProperties |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.messaging.commands. OrderStatusCmd |
defaultCommandClassName,
NAME |
Constructor Summary | |
---|---|
OrderStatusCmdImpl() |
Method Summary | |
---|---|
boolean |
checkOrderStatusSequence(
OrderFulfillmentStatusAccessBean orderStatusAB) Verifies that the sequence information of the order status to update does not conflict with the sequence information with the order status that is currently in the ORDSTAT table. |
void |
createOrderStatus() Creates a new entry in the ORDSTAT table based the the given information that is received through the request properties. |
boolean |
doPostProcess(
TypedProperty aRequestProperty) Performs a verification check after the command executes. |
boolean |
doPreProcess(
TypedProperty aRequestProperty) Performs a verification check before the command executes. |
boolean |
doProcess(
TypedProperty aRequestProperty) Determine whether this order is new or not. |
AccessVector |
getIAccessVector() Returns the iAccessVector. |
java.lang.String |
getIMerchantOrderNumber() Returns the iMerchantOrderNumber. |
java.lang.Long |
getIOrderId() Returns the iOrderId. |
protected
OrderFulfillmentStatusAccessBean |
getOrderStatus() Gets the order status |
java.util.Vector |
getOsItems() Returns the osItems. |
TypedProperty |
getOsProp() Returns the osProp. |
AccessVector |
getResources() Gets the access vector accessed by this command. |
boolean |
isReadyToCallExecute() Indicates whether the command is ready to execute. |
void |
performExecute() Performs a pre condition check on the request properties and if the pre condition check is ok, the business logic will be performed followed by a post condition check to ensure integrity is maintained. |
void |
propertySet(
OrderFulfillmentStatusAccessBean ab,
TypedProperty aProp) Fills the OrderFulfillmentStatusAccessBean object with the values that are found in the request properties. |
void |
reset() This resets the output properties to the values they had prior to calling the execute method, so that the get methods no longer work but the isReadyToCallExecute returns true. |
protected
void |
setOrder(
OrderAccessBean o) Sets the order |
protected
void |
setOrderStatus(
OrderFulfillmentStatusAccessBean os) Sets the order status |
void |
setRequestProperties(
TypedProperty aRequestProperties) Binds the parameters received by the request properties to variables that are used for determining the order to updated. |
void |
updateOrder(
OrderAccessBean abOrder) Updates the ORDSTAT table with the information given by the request properties. |
void |
validateParameters() This is where parameter checking is done. |
Methods inherited from class com.ibm.commerce.command. ControllerCommandImpl |
checkPermission,
fulfills,
getForUserId,
getGeneric,
getOwner,
getRequestProperties,
getResolvedRequestProperties,
getResourceOwners,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setForUserId,
setGeneric,
setOwner,
setResponseProperties,
setRetriable,
setViewInputProperties |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
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. 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,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String UPDATEMODE_PARTIAL
public static final java.lang.String UPDATEMODE_COMPLETE
Constructor Detail |
---|
public OrderStatusCmdImpl()
Method Detail |
---|
public boolean checkOrderStatusSequence(OrderFulfillmentStatusAccessBean orderStatusAB) throws ECException
orderStatusAB
- The OrderFulfillmentStatusAccessBeanECException
java.rmi.RemoteException
- Raised whenever a communication
related problems occuredFinderEception
- Raised whenever a request object is not
foundjavax.naming.NamingException
- Raised whenever a failure to
look up the JNDI name occuredCreateException
- Raised whenever a failure to create the EJB
occuredpublic void createOrderStatus() throws ECException
ECException
java.rmi.RemoteException
- Raised whenever a communication
related problems occuredFinderEception
- Raised whenever a request object is not
foundjavax.naming.NamingException
- Raised whenever a failure to
look up the JNDI name occuredCreateException
- Raised whenever a failure to create the EJB
occuredpublic boolean doPostProcess(TypedProperty aRequestProperty) throws ECException
doPostProcess
in interface
OrderStatusCmd
aRequestProperty
-
com.ibm.commerce.datatype.TypedPropertyECException
public boolean doPreProcess(TypedProperty aRequestProperty) throws ECException
doPreProcess
in interface
OrderStatusCmd
aRequestProperty
-
com.ibm.commerce.datatype.TypedPropertyECException
public boolean doProcess(TypedProperty aRequestProperty) throws ECException
doProcess
in interface
OrderStatusCmd
aRequestProperty
- The request propertyECException
public AccessVector getResources() throws ECException
getResources
in interface
ECCommand
getResources
in class
AbstractECTargetableCommand
ECException.
ECException
public boolean isReadyToCallExecute()
isReadyToCallExecute
in class
AbstractECTargetableCommand
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
public void propertySet(OrderFulfillmentStatusAccessBean ab, TypedProperty aProp) throws ECException
ab
- The OrderFulfillmentStatusAccessBeanaProp
- The TypedPropertyECException
java.rmi.RemoteException
- Raised whenever a communication
related problems occuredFinderEception
- Raised whenever a request object is not
foundjavax.naming.NamingException
- Raised whenever a failure to
look up the JNDI name occuredCreateException
- Raised whenever a failure to create the EJB
occuredjava.lang.NumberFormatException
- Raised whenever an invalid
parameter value is passedpublic void reset()
reset
in class
AbstractECTargetableCommand
public void setRequestProperties(TypedProperty aRequestProperties) throws ECException
setRequestProperties
in interface
ControllerCommand
setRequestProperties
in class
ControllerCommandImpl
aRequestProperties
- request propertiesECException
- Raised with _ERR_INVALID_ORDER_REFNUM whenever the order id is not contained
in the request propertypublic void updateOrder(OrderAccessBean abOrder) throws ECException
abOrder
- com.ibm.commerce.order.objects.OrderAccessBeanECException
java.rmi.RemoteException
- Raised whenever a communication
related problems occuredFinderEception
- Raised whenever a request object is not
foundjavax.naming.NamingException
- Raised whenever a failure to
look up the JNDI name occuredCreateException
- Raised whenever a failure to create the EJB
occuredprotected OrderFulfillmentStatusAccessBean getOrderStatus()
protected void setOrderStatus(OrderFulfillmentStatusAccessBean os)
protected void setOrder(OrderAccessBean o)
public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECException.
ECException
public AccessVector getIAccessVector()
public java.lang.String getIMerchantOrderNumber()
public java.lang.Long getIOrderId()
public java.util.Vector getOsItems()
public TypedProperty getOsProp()