java.lang.ObjectCacheableCommandImpl
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 |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
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
public void createOrderStatus() throws ECException
public boolean doPostProcess(TypedProperty aRequestProperty) throws ECException
public boolean doPreProcess(TypedProperty aRequestProperty) throws ECException
public boolean doProcess(TypedProperty aRequestProperty) throws ECException
public AccessVector getResources() throws ECException
public boolean isReadyToCallExecute()
public void performExecute() throws ECException
public void propertySet(OrderFulfillmentStatusAccessBean ab, TypedProperty aProp) throws ECException
public void reset()
public void setRequestProperties(TypedProperty aRequestProperties) throws ECException
public void updateOrder(OrderAccessBean abOrder) throws ECException
protected OrderFulfillmentStatusAccessBean getOrderStatus()
protected void setOrderStatus(OrderFulfillmentStatusAccessBean os)
protected void setOrder(OrderAccessBean o)
public void validateParameters() throws ECException
public AccessVector getIAccessVector()
public java.lang.String getIMerchantOrderNumber()
public java.lang.Long getIOrderId()
public java.util.Vector getOsItems()
public TypedProperty getOsProp()
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.