public abstract class ARefundTaskCmdImpl extends AEDPTaskCmdImpl implements ARefundTaskCmd
Constructor and Description |
---|
ARefundTaskCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCurrency()
This method returns the current currency.
|
java.lang.Integer |
getCurrentStoreId()
This method returns the store id through RMA.
|
java.lang.Long |
getPaymentPolicyId()
This method returns the payment policy ID and the corresponding policy
will be used as the refund method.
|
java.util.ArrayList |
getRefundInstructions()
This method returns the refund instructions.
|
java.lang.Long |
getRmaId()
This method returns the identifier of current RMA.
|
boolean |
isProcessBGExecutableInFG()
This method checks if the background tasks can be processed in the foreground thread.
|
void |
reset()
This method resets the instance variable of this command.
|
void |
setBgJobStatusInDb(java.lang.Integer bgJobStatus)
This method sets the background status on the current refund.
|
void |
setCurrency(java.lang.String localCurrency)
This method sets the current currency.
|
void |
setPaymentPolicyId(java.lang.Long localPaymentPolicyId)
This method sets the payment policy ID and the corresponding policy will
be used as the refund method, this value is set by
ReturnProcessCmdImpl . |
void |
setRefundInstructions(java.util.ArrayList localRefundInstructions)
This method sets the refund instructions.
|
void |
setRMAAB(RMAAccessBean anRMAAB)
This method sets the RMA being accessed.
|
void |
setRmaId(java.lang.Long localRmaId)
This method sets the identifier of current RMA(Return Merchandise Authorization).
|
java.lang.String |
toString()
This method converts this request data into a human-readable string.
|
void |
validateInsideProcessFG()
This method validates if the required parameters are present for the foreground tasks.
|
getEdpException, getEDPOrderId, getEDPResults, getLanguageId, getLocale, getOrderChannel, getOrderId, getStatus, isIdempotent, isProcessBGTasksRequired, resetServices, setBGProcessFinished, setEdpException, setEDPOrderId, setEDPResults, setOrderChannel, setOrderId, setProcessBGTasksRequired, setStatus
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEDPResults, getLanguageId, getLocale, getOrderChannel, getOrderId, setEDPResults, setOrderId
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public void setRmaId(java.lang.Long localRmaId)
setRmaId
in interface ARefundTaskCmd
localRmaId
- The identifier of current RMApublic final java.lang.Long getRmaId()
public void setCurrency(java.lang.String localCurrency)
localCurrency
- The currency to setpublic java.lang.String getCurrency()
getCurrency
in interface AEDPTaskCmd
getCurrency
in class AEDPTaskCmdImpl
public java.util.ArrayList getRefundInstructions()
public void setRefundInstructions(java.util.ArrayList localRefundInstructions)
localRefundInstructions
- ArrayList The current refund instructions to processpublic java.lang.String toString()
toString
in class AEDPTaskCmdImpl
public void validateInsideProcessFG() throws EDPException
AEDPTaskCmdImpl
.validateInsideProcessFG(),
then check if RMA ID is present.validateInsideProcessFG
in class AEDPTaskCmdImpl
EDPException
- In case Payment Rules errorpublic boolean isProcessBGExecutableInFG()
isProcessBGExecutableInFG
in class AEDPTaskCmdImpl
public void setBgJobStatusInDb(java.lang.Integer bgJobStatus) throws J2EEException, InputException, ECException
bgJobStatus
- The new statusJ2EEException
- If EJBs cannot be accessedInputException
- If an invalid status or invalid order is selectedECException
- If store cannot be retrievedpublic java.lang.Integer getCurrentStoreId() throws ECException
ECException
- If store id cannot be retrieved from the RMApublic void setRMAAB(RMAAccessBean anRMAAB)
anRMAAB
- The RMA access beanpublic void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AEDPTaskCmdImpl
public java.lang.Long getPaymentPolicyId()
public void setPaymentPolicyId(java.lang.Long localPaymentPolicyId)
ReturnProcessCmdImpl
.localPaymentPolicyId
- The payment policy ID to set.