public class AdminOrderCancelCmdImpl extends OrderBaseCmdImpl implements AdminOrderCancelCmd
Name | Description |
---|---|
orderId | The order Id abbreviations. Optional |
URL | The redirect URL. Optional |
notifyMerchant | The property indicates whether to notify merchant for order cancel. If the value is 1, the command will notify merchant. Otherwise, the command will not notify merchant when the value equals 0. Optional |
notifyShopper | The property indicates whether to notify shopper for order cancel. If the value is 1, the command will notify shopper. Otherwise, the command will not notify shopper when the value equals 0. Optional |
forcedCancel | The property indicates whether to reverse payment when the deposit has already happened. If the value is true, the command will reverse all approved payment even if deposits have already happened. Optional |
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASSNAME
The full name of this command.
|
Constructor and Description |
---|
AdminOrderCancelCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected static void | cancelEDPOrder(java.lang.Long nOrderId, java.lang.Integer nStoreId, CommandContext cmdCtxt, java.lang.Boolean forceCancel)
This method calls taskCommond CancelOrderCmd to reverse all approved deposit.
|
java.lang.Boolean | getForcedCancel()
This method gets the forcedCancel
|
protected java.lang.String | getNotifyMerchant()
This method returns a flag indicating whether to notify merchant for order cancel.
|
protected java.lang.String | getNotifyShopper()
This method returns a flag indicating whether to notify shopper for order cancel.
|
java.lang.Long | getOrderId()
This method returns the id of the order.
|
protected java.lang.String | getPurge()
This method returns the purge property of the command.
|
AccessVector | getResources()
This method gets the resources.
|
java.lang.String | getURL()
This method returns the URL .
|
boolean | isReadyToCallExecute()
This method is called by the Command Framework to check if URL and orderId parameters have been set for this command.
|
void | performExecute()
This method executes the business logic of this command implementation.
|
static void | performOrderCancel(CommandContext cmdCtxt, OrderAccessBean abOrder, java.lang.Boolean forcedCancel, TypedProperty requestProperties)
This static method performs an order cancel.
|
static void | performOrderCancel(CommandContext cmdCtxt, OrderAccessBean abOrder, java.lang.String sPurge, TypedProperty requestProperties)
This static method calls performOrderCancel(CommandContext, OrderAccessBean, Boolean, TypedProperty) to cancel order.
|
static void | performOrderCancel(CommandContext cmdCtxt, OrderAccessBean abOrder, TypedProperty requestProperties)
This static method calls performOrderCancel(CommandContext, OrderAccessBean, Boolean, TypedProperty) to cancel order.
|
protected void | raiseBusinessEvent(OrderAccessBean orderAB)
This method raises the business event for the canceled order.
|
void | setForcedCancel(java.lang.Boolean cancel)
This method sets the forcedCancel
|
protected void | setNotifyMerchant(java.lang.String strNotifyMerchant)
This method sets a flag indicating whether to notify merchant for order cancel.
|
protected void | setNotifyShopper(java.lang.String strNotifyShopper)
This method sets a flag indicating whether to notify to shopper for order cancel.
|
void | setOrderId(java.lang.Long orderId)
This method sets the id of the order.
|
protected void | setPurge(java.lang.String sPurge)
This method sets the purge property of the command.
|
void | setRequestProperties(TypedProperty reqProperties)
This method sets request properties, if the parameter is null or unexpected value, the method will give it default value.
|
void | setURL(java.lang.String astrURL)
This method sets the redirect URL property of the command.
|
static void | throwIllegalStatus(java.lang.String methodName)
This method reports and propagates error for invalid status.
|
void | validateParameters()
This method checks parameters of the command.
|
public static final java.lang.String CLASSNAME
protected java.lang.String getNotifyMerchant()
protected java.lang.String getNotifyShopper()
public java.lang.Long getOrderId()
protected java.lang.String getPurge()
public AccessVector getResources() throws ECException
public java.lang.String getURL()
public boolean isReadyToCallExecute()
protected static void cancelEDPOrder(java.lang.Long nOrderId, java.lang.Integer nStoreId, CommandContext cmdCtxt, java.lang.Boolean forceCancel) throws ECException
public void performExecute() throws ECException
public static void performOrderCancel(CommandContext cmdCtxt, OrderAccessBean abOrder, TypedProperty requestProperties) throws ECException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
public static void performOrderCancel(CommandContext cmdCtxt, OrderAccessBean abOrder, java.lang.String sPurge, TypedProperty requestProperties) throws ECException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
public static void performOrderCancel(CommandContext cmdCtxt, OrderAccessBean abOrder, java.lang.Boolean forcedCancel, TypedProperty requestProperties) throws ECException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void setNotifyMerchant(java.lang.String strNotifyMerchant)
protected void setNotifyShopper(java.lang.String strNotifyShopper)
public void setOrderId(java.lang.Long orderId)
protected void setPurge(java.lang.String sPurge)
public void setRequestProperties(TypedProperty reqProperties) throws ECException
public void setURL(java.lang.String astrURL)
public void validateParameters() throws ECException
public static void throwIllegalStatus(java.lang.String methodName) throws ECApplicationException
public void setForcedCancel(java.lang.Boolean cancel)
public java.lang.Boolean getForcedCancel()
protected void raiseBusinessEvent(OrderAccessBean orderAB) throws ECException