public class ChangePaymentCurrencyTaskCmdImpl extends AEDPPaymentTaskCmdImpl implements ChangePaymentCurrencyTaskCmd
ChangePaymentCurrencyTaskCmd task command.
OrderProcessingHelper
when the currency of order has been changed.commandContext |
The command context. |
orderId |
A Long that specifies current order id.. |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
The IBM Copyright notice field.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
ChangePaymentCurrencyTaskCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
CurrencyManager |
getCurrencyManager()
This method returns the instance of
CurrencyManager, which
is a singleton object and used to calculate the amount between different
currency. |
MonetaryAmount |
getMonetaryAmount()
This method returns the current monetary amount object, which contains the
value and the currency.
|
java.lang.String |
getOrderNewCurrency()
This method returns the new currency of the order.
|
java.math.BigDecimal |
getOrderTotalAmount()
This method returns the total amount of current order, since here the
currency has been changed, the total amount is based on the new currency.
|
boolean |
ifAtomicPaymentsExist(java.lang.Long piId)
This method judges if any atomic payments of a payment instruction exists.
|
boolean |
isBgJobInWorking()
This method returns the current pending status of the order.
|
void |
performExecute()
This method executes the business logic of this command implementation.
|
void |
reset()
This method resets the command fields.
|
void |
setBgJobStatusInDb(java.lang.Integer bgJobStatus)
This method sets the BG status on the current EDPOrder .
|
void |
setMonetaryAmount(MonetaryAmount aMonetaryAmount)
This method sets the current monetary amount object, which contains the
value and the currency.
|
void |
setOrderNewCurrency(java.lang.String newCurrency)
This method sets the new currency to the Order.
|
void |
setOrderTotalAmount(java.math.BigDecimal newAmount)
This method sets the total amount of current order, since here the
currency has been changed, the total amount is based on the new currency.
|
void |
validateParameters()
This method extracts and validates the input parameters of this command implementation.
|
getErrorMessageMap, getStoreId, insertActionListToActionDetailHash, insertActionListToEditActionDetailHash, isProcessBGExecutableInFG, setErrorMessageMap, setStoreId, toString, validateInsideProcessFGgetCurrency, getEdpException, getEDPOrderId, getEDPResults, getLanguageId, getLocale, getOrderChannel, getOrderId, getStatus, isIdempotent, isProcessBGTasksRequired, resetServices, setBGProcessFinished, setEdpException, setEDPOrderId, setEDPResults, setOrderChannel, setOrderId, setProcessBGTasksRequired, setStatusaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCurrency, getEDPResults, getLanguageId, getLocale, getOrderChannel, getOrderId, setEDPResults, setOrderIdexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiespublic static final java.lang.String COPYRIGHT
public void setMonetaryAmount(MonetaryAmount aMonetaryAmount)
aMonetaryAmount - A MonetaryAmount that represents the current monetary amount object.public MonetaryAmount getMonetaryAmount()
public CurrencyManager getCurrencyManager() throws ECSystemException
CurrencyManager, which
is a singleton object and used to calculate the amount between different
currency.CurrencyManager.ECSystemException - This exception is thrown if some error occurs.public void setOrderTotalAmount(java.math.BigDecimal newAmount)
setOrderTotalAmount in interface ChangePaymentCurrencyTaskCmdnewAmount - A BigDecimal that specifies the new total amount of the order based on the new currency.public java.math.BigDecimal getOrderTotalAmount()
public java.lang.String getOrderNewCurrency()
public void setOrderNewCurrency(java.lang.String newCurrency)
setOrderNewCurrency in interface ChangePaymentCurrencyTaskCmdnewCurrency - A String that specifies the new currency of the order.public void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECException - This exception is thrown when any kind of EDPExceptions catched.public boolean isBgJobInWorking()
throws InternalException,
J2EEException,
InputException
isBgJobInWorking in class AEDPPaymentTaskCmdImplInternalException - This exception is thrown when an internal logic error is detected.J2EEException - This exception is thrown when EJBs cannot be accessed.InputException - This exception is thrown when an invalid order id / store id combination is provided
in the request.public boolean ifAtomicPaymentsExist(java.lang.Long piId)
throws J2EEException,
InputException
performExecute().piId - A Long that represents the current payment instruction id.J2EEException - This exception is thrown when EJBs cannot be accessed.InputException - This exception is thrown when an invalid order id / store id
combination is provided in the request.public void setBgJobStatusInDb(java.lang.Integer bgJobStatus)
throws J2EEException,
InputException
setBgJobStatusInDb in class AEDPPaymentTaskCmdImplbgJobStatus - An Integer that specifies the new backend job
status of current EDPOrder .J2EEException - This exception is thrown if EJBs cannot be accessed.InputException - This exception is thrown if an invalid status
or invalid order is selected.public void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECException - This exception is thrown in case of failures.public void reset()
reset in interface com.ibm.websphere.command.Commandreset in class AEDPPaymentTaskCmdImpl