public class OrderRetransferCmdImpl extends ControllerCommandImpl implements OrderRetransferCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CONFIG_GROUPING_SIDEBYSIDE_INTEGRATION
Name of the configuration grouping for the side-by-side integration flow.
|
static java.lang.String | CONFIG_PROPERTY_EXPIRATION_TIME
Name of the configuration property for pending on transfer order expiration time.
|
Constructor and Description |
---|
OrderRetransferCmdImpl()
This is the class constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void | confirmExpiredPendingOrders(java.util.ArrayList orderIds)
This method confirm 'pending on transfer' orders with remote order management system.
|
AccessVector | getResources()
This method returns command resources for access control by instantiating an access vector using the StoreAccessBean.
|
protected boolean | handleApplicationError(java.lang.Long orderId, java.lang.Exception exception)
This method helps you to process a specific order when the ECApplicationException is thrown.
|
boolean | isGeneric()
This method returns false to indicate that this command cannot be run by a generic user.
|
boolean | isReadyToCallExecute()
This method returns true to indicate that this command is ready to be executed.
|
void | performExecute()
This method performs the main business logic to re-transfer orders to remote order management system.
|
void | reset()
Resets instance variables to their initial values.
|
protected java.util.ArrayList | resolveExpiredPendingOrderIds()
This method resolves the expired 'pending on transfer' order id list.
|
protected java.util.ArrayList | resolveFailedOrderIds()
This method resolves 'fail to transfer' order id list.
|
protected java.util.Vector | resolveOrdersToBeRetransferred()
This method resolves order id list that need to be re-transferred.
|
protected java.util.ArrayList | resolvePendingOrderIdsForRetransfer()
This method resolves 'pending on transfer' order id list that need to be re-transferred.
|
void | setRequestProperties(TypedProperty reqParms)
This method sets the command request properties.
|
protected void | transferOrder(java.lang.Long orderId)
This method calls TransferOrderIndependentOfEventCmd task command to transfer the order to remote order management system.
|
void | validateParameters()
This method extracts and validates the input parameters of the command implementation.
|
public static final java.lang.String CONFIG_GROUPING_SIDEBYSIDE_INTEGRATION
public static final java.lang.String CONFIG_PROPERTY_EXPIRATION_TIME
public OrderRetransferCmdImpl()
public AccessVector getResources() throws ECException
This command uses the following access bean:
public boolean isGeneric()
public boolean isReadyToCallExecute()
public void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
public void validateParameters() throws ECException
public void reset()
protected boolean handleApplicationError(java.lang.Long orderId, java.lang.Exception exception) throws ECException
public void performExecute() throws ECException
protected java.util.Vector resolveOrdersToBeRetransferred() throws ECException
protected java.util.ArrayList resolveFailedOrderIds()
protected java.util.ArrayList resolvePendingOrderIdsForRetransfer()
protected void confirmExpiredPendingOrders(java.util.ArrayList orderIds)
protected java.util.ArrayList resolveExpiredPendingOrderIds()
protected void transferOrder(java.lang.Long orderId) throws ECException