public class OrderStatusCmdImpl extends ControllerCommandImpl implements OrderStatusCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CONFIG_GROUPING_SYNC_ORDER
Name of the configuration grouping for the sync order integration flow.
|
static java.lang.String | CONFIG_PROPERTY_FINALIZE_PAYMENT
Name of the configuration property for the finalize payment setting.
|
static java.lang.String | COPYRIGHT
The internal copyright field.
|
static java.lang.String | EMPTY_STRING
The empty string.
|
static java.lang.String | UPDATEMODE_COMPLETE
The complete update mode
|
static java.lang.String | UPDATEMODE_PARTIAL
The partial update mode
|
Constructor and Description |
---|
OrderStatusCmdImpl() |
Modifier and Type | Method and Description |
---|---|
boolean | checkOrderStatusSequence(OrderFulfillmentStatusAccessBean orderStatusAB)
This method verifies that the sequence information of the order status to update does not conflict with the order status currently in the ORDSTAT table.
|
void | createOrderStatus()
This method creates a new entry in the ORDSTAT table based on the information that is received through the request properties.
|
boolean | doDOMPostProcess(TypedProperty aRequestProperty)
Works with doDOMPreProcess(TypedProperty) to implement the following business logic.
|
boolean | doDOMPreProcess(TypedProperty aRequestProperty)
Works with doDOMPostProcess(TypedProperty) to implement the following business logic.
|
boolean | doPostProcess(TypedProperty aRequestProperty)
This method performs a verification check after the command executes.
|
boolean | doPreProcess(TypedProperty aRequestProperty)
This method performs a verification check before the command executes.
|
boolean | doProcess(TypedProperty aRequestProperty)
This method performs the business logic for this command.
|
protected java.math.BigDecimal | getDepositedAmount(OrderFulfillmentStatusAccessBean aabOrderStatus)
Returns the deposited amount of an order as indicated by its order and order item fulfillment status records.
|
protected boolean | getFinalizedPayment()
Returns whether payment should be finalized (deposited) based on the order fulfillment status or order fulfillment item statuses.
|
AccessVector | getIAccessVector()
This method returns the iAccessVector.
|
java.lang.String | getIMerchantOrderNumber()
This method returns the iMerchantOrderNumber.
|
java.lang.Short | getInventorySystem()
Get the inventory system of the current online store.
|
java.lang.Long | getIOrderId()
This method returns the iOrderId.
|
protected java.lang.Long | getNextReleaseNumber(java.lang.Long anOrderId)
Returns the next release number available to an order.
|
protected OrderFulfillmentStatusAccessBean | getOrderStatus()
This method gets the order status.
|
java.util.Vector | getOsItems()
This method returns the osItems.
|
TypedProperty | getOsProp()
This method returns the osProp.
|
AccessVector | getResources()
This method gets the access vector accessed by this command.
|
boolean | isReadyToCallExecute()
This method indicates whether the command is ready to execute.
|
static boolean | isSyncWCSOrderStatusEnabled()
Check whether the sync WCS order status flag is enabled in the configuration files.
|
protected boolean | isValidWCSOrderStatus(java.lang.String status)
Check whether the status is a valid WCS order status(R, S, X, D, C, E) after order submitted.
|
void | performExecute()
Performs a precondition check on the request properties.
|
void | propertySet(OrderFulfillmentStatusAccessBean ab, TypedProperty aProp)
This method fills the OrderFulfillmentStatusAccessBean object with the values that are found in the request properties.
|
void | reset()
This method resets the output properties to the values they had before calling the execute method.
|
protected void | setOrder(OrderAccessBean o)
This method sets the order.
|
protected void | setOrderStatus(OrderFulfillmentStatusAccessBean os)
This method sets the order status.
|
void | setRequestProperties(TypedProperty aRequestProperties)
This method binds the parameters received by the request properties to variables that are used for determining the order to updated.
|
protected void | syncStatusForWCSOrder(OrderAccessBean abOrder, java.lang.String status)
This method updates the ORDERS table by the input status.
|
void | updateOrder(OrderAccessBean abOrder)
This method updates the ORDSTAT table with the information given by the request properties.
|
void | validateParameters()
This method performs parameter checking.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String EMPTY_STRING
public static final java.lang.String UPDATEMODE_PARTIAL
public static final java.lang.String UPDATEMODE_COMPLETE
public static final java.lang.String CONFIG_GROUPING_SYNC_ORDER
public static final java.lang.String CONFIG_PROPERTY_FINALIZE_PAYMENT
public boolean checkOrderStatusSequence(OrderFulfillmentStatusAccessBean orderStatusAB) throws ECException
public void createOrderStatus() throws ECException
public boolean doPostProcess(TypedProperty aRequestProperty) throws ECException
public boolean doDOMPreProcess(TypedProperty aRequestProperty) throws ECException
public boolean doDOMPostProcess(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 java.lang.Short getInventorySystem() throws ECException
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()
protected java.math.BigDecimal getDepositedAmount(OrderFulfillmentStatusAccessBean aabOrderStatus) throws ECException
protected java.lang.Long getNextReleaseNumber(java.lang.Long anOrderId) throws ECException
protected boolean getFinalizedPayment()
protected void syncStatusForWCSOrder(OrderAccessBean abOrder, java.lang.String status) throws ECException
protected boolean isValidWCSOrderStatus(java.lang.String status)
public static boolean isSyncWCSOrderStatusEnabled()