public abstract class AEDPPaymentTaskCmdImpl extends AEDPTaskCmdImpl implements AEDPPaymentTaskCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
AEDPPaymentTaskCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | addReverseApprovalActionToActionList(java.util.List listReverseActions, java.lang.Long piId)
This method adds list of reverse approval action to ListOfReversalActionDetailLists.
|
protected java.math.BigDecimal | applyOverConsumedAmtInAP(java.lang.Long edpOrderId, java.util.ArrayList releasesToProcess, int phase)
This method applies over consumed amount to releases.
|
protected void | checkBGJobStatus(java.lang.Long edpOrderid)
This method checks the background status of EDPOrder .
|
protected void | continuePrimePaymentWork(java.lang.Long pdpOrderId, java.math.BigDecimal amount)
This method continues the prime payment request.
|
java.util.Map | getErrorMessageMap()
This method returns the map containing error message of each Payment Instruction.
|
protected java.util.HashMap | getHashOfActionDetailLists()
This method gets the list of action lists in this request.
|
protected java.util.HashMap | getHashOfEditActionDetailLists()
This method gets the list of edit action lists in this request.
|
protected java.util.HashMap | getHashOfReversalActionDetailLists()
This method gets the list of reversal action lists.
|
protected java.util.Map | getMessageOfFailedPayments(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent cbe)
This method returns the error messages(NLV) of failed payments for each Payment Instruction.
|
protected OrderAccessBean | getOrderAccessBean()
This method gets a reference to the order access bean.
|
protected java.math.BigDecimal | getOrderTotalAmount()
This method gets the total payment amount for the order This represents the current charges plus deferred charges --- what will ship now and later
|
protected int | getPaymentProcessStatus(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent cbe)
This method returns the overall payment status in current payment rules task command calling.
|
java.lang.Integer | getStoreId()
This method gets the current store id.
|
protected java.math.BigDecimal | getTotalAtomicPaymentPhaseAmont(java.lang.Long edpOrderId, int phase)
This method gets sum of atomic payment successful (Non pending) amount at the specified phase.
|
protected java.math.BigDecimal | getTotalReleasePhaseAmount(java.lang.Long edpOrderId, int phase)
This method calculates the total release's phase amount for all releases in order.
|
void | insertActionListToActionDetailHash(java.lang.Long piId, java.util.List actions)
This method inserts actions list to the HashMap ,piId is key
|
void | insertActionListToEditActionDetailHash(java.lang.Long piId, java.util.List actions)
This method inserts actions list to edit actions HashMap.
|
boolean | isBgJobInWorking()
This method gets the current pending status of the order.
|
protected boolean | isCompatiblePaymentUsedByOrder(java.lang.Long policyId)
This method returns if the specified payment policy is in compatible mode.
|
boolean | isProcessBGExecutableInFG()
This method judges if the backend job could be executable in foreground.
|
protected void | processBGPrimeWork()
This method processes the backend prime payment work.
|
void | reset()
This method resets the command fields.
|
protected void | setAssociatedItemsToPaymentAction(java.util.Collection items, java.util.HashMap localListOfActionDetailLists)
This method sets the associated order items to the each payment actions in the resulting payment actions of payment rules engine.
|
void | setBgJobStatusInDb(java.lang.Integer bgJobStatus)
This method sets the background job status on the current order.
|
void | setErrorMessageMap(java.util.Map localErrorMessageMap)
This method sets the map containing error message of each Payment Instruction.
|
protected void | setHashOfActionDetailLists(java.util.HashMap localListOfActionDetailLists)
This method sets list of action list
|
protected void | setHashOfEditActionDetailLists(java.util.HashMap pListOfEditActionDetailLists)
This method sets the list of edit action lists.
|
protected void | setHashOfReversalActionDetailLists(java.util.HashMap localListOfReversalActionDetailLists)
This method sets the list of reverse action lists.
|
void | setStoreId(java.lang.Integer integer)
This method sets the current store id.
|
protected boolean | synchronizeEDPDataWithBackendData(java.lang.Long edpOrderId)
This method reads PPC payment objects and updates EDP atomic payment and release pending amounts accordingly.
|
java.lang.String | toString()
This method converts this request data into a human-readable string.
|
protected void | updateAtomicPaymentAfterHashActions(java.util.HashMap actionLists, int phase)
This updates the amount attributes associated with each phase of business event in the atomic payments.
|
void | validateInsideProcessFG()
This method validates the required information inside the ProcessFG() method of each payment task commands.
|
protected void | validatePaymentInstructionAmountRange(EDPPaymentInstruction edpPI)
This method validates that the payment instruction is within the range of the associated payment method configuration.
|
protected java.util.Collection | verifyPaymentsNotDepositedForPI(java.lang.Long piId, java.lang.Integer localStoreId, boolean ignoreDepositState, java.lang.String requestName)
This method validates payments not yet deposited for a given payment instruction.
|
public static final java.lang.String COPYRIGHT
public boolean isBgJobInWorking() throws InternalException, J2EEException, InputException
public void setBgJobStatusInDb(java.lang.Integer bgJobStatus) throws J2EEException, InputException
protected void checkBGJobStatus(java.lang.Long edpOrderid) throws ECException, EDPException
public java.lang.String toString()
public void validateInsideProcessFG() throws EDPException
public java.util.Map getErrorMessageMap()
public void setErrorMessageMap(java.util.Map localErrorMessageMap)
protected void setHashOfActionDetailLists(java.util.HashMap localListOfActionDetailLists)
protected java.util.HashMap getHashOfActionDetailLists()
protected void setHashOfEditActionDetailLists(java.util.HashMap pListOfEditActionDetailLists)
protected void setAssociatedItemsToPaymentAction(java.util.Collection items, java.util.HashMap localListOfActionDetailLists) throws ECException
protected java.util.HashMap getHashOfEditActionDetailLists()
protected void setHashOfReversalActionDetailLists(java.util.HashMap localListOfReversalActionDetailLists)
protected java.util.HashMap getHashOfReversalActionDetailLists()
protected java.math.BigDecimal getTotalAtomicPaymentPhaseAmont(java.lang.Long edpOrderId, int phase) throws J2EEException, InputException
protected java.math.BigDecimal getTotalReleasePhaseAmount(java.lang.Long edpOrderId, int phase) throws J2EEException, InputException
protected void addReverseApprovalActionToActionList(java.util.List listReverseActions, java.lang.Long piId)
protected java.math.BigDecimal applyOverConsumedAmtInAP(java.lang.Long edpOrderId, java.util.ArrayList releasesToProcess, int phase) throws J2EEException, InputException
protected void continuePrimePaymentWork(java.lang.Long pdpOrderId, java.math.BigDecimal amount) throws EDPException, ECException
This method continues the prime payment request.
protected void processBGPrimeWork() throws EDPException, ECException
protected boolean synchronizeEDPDataWithBackendData(java.lang.Long edpOrderId) throws EDPException, ECException
protected void updateAtomicPaymentAfterHashActions(java.util.HashMap actionLists, int phase) throws InvalidRequestException, InvalidDataException, ObjectCannotBeFoundException, EDPException
This updates the amount attributes associated with each phase of business event in the atomic payments.
protected void validatePaymentInstructionAmountRange(EDPPaymentInstruction edpPI) throws EDPException
protected java.util.Collection verifyPaymentsNotDepositedForPI(java.lang.Long piId, java.lang.Integer localStoreId, boolean ignoreDepositState, java.lang.String requestName) throws InvalidRequestException, CommunicationException, J2EEException, InputException
protected int getPaymentProcessStatus(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent cbe) throws ECException, EDPException
0 -- SUCCESS
1 -- PENDING
2 -- FAILURE
protected java.util.Map getMessageOfFailedPayments(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent cbe) throws ECException, EDPException
public boolean isProcessBGExecutableInFG()
public void insertActionListToActionDetailHash(java.lang.Long piId, java.util.List actions)
public void insertActionListToEditActionDetailHash(java.lang.Long piId, java.util.List actions)
public java.lang.Integer getStoreId()
public void setStoreId(java.lang.Integer integer)
protected OrderAccessBean getOrderAccessBean() throws ECException
This method gets a reference to the order access bean.
It will first check if there is a local reference to the order access bean. If not present, it will create a new one.
protected java.math.BigDecimal getOrderTotalAmount() throws ECException
protected boolean isCompatiblePaymentUsedByOrder(java.lang.Long policyId) throws ECException
public void reset()
This method resets the command fields.
After this method is invoked, and proper attributes are set, the command can be executed again.