Package com.portal.app.ccare.comp
Class PARDisputesPageBeanImpl
java.lang.Object
com.portal.bas.PControllerImpl
com.portal.bas.comp.PIAComponentCollectionBean
com.portal.app.ccare.comp.PARDisputesPageBeanImpl
- All Implemented Interfaces:
PARDisputesPageBean
,PIACollectionBean
,PControllerBean
,Serializable
,Remote
,Unreferenced
public class PARDisputesPageBeanImpl
extends PIAComponentCollectionBean
implements PARDisputesPageBean
Controller class handling dispute and settlement
The following opcodes are used by this controller:
PortalOp.AR_GET_DISPUTES
PortalOp.AR_GET_ITEM_DETAIL
PortalOp.BILL_ITEM_SETTLEMENT
- See Also:
-
Field Summary
FieldsFields inherited from class com.portal.bas.PControllerImpl
mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FList
convertCurrencyToResource
(FList itemFlist) disputeItem
(PModelHandle handle, ArrayList arrList) CallPortalOp.AR_ITEM_DISPUTE
dispute given bill item.getDisputes
(PModelHandle hDispute, PModelHandle hSettlement, int nIncludeChildren, PModelHandle hAcct, PModelHandle hArAcct) CallPortalOp.AR_GET_DISPUTES
to get a list of disputed items.getDisputesNotes
(PModelHandle hRow) Return the comments for disputed item(s), comments concatenated in the case for multiple disputes associated with a single bill itemgetEventSettlementModelHandle
(PModelHandle hRow, int primaryCurrency, int secondaryCurrency, int displayedCur) if the displayed currency is not equal to primary currency, then converts the resource id and amount to displayed currency and updates the model handle.getItemDisputeTime
(PModelHandle mHandle) from model handle, it fetches for latest FldEffectiveT, that is last opened dispute dategetReasonCodes
(int reasonType, Locale locale) return reason code for given reason typegetSettlementAmount
(PModelHandle mhItem) this method returns only item dispute amount and removes event dispute amount from the disputed amount.boolean
isPayingParentAccount
(PModelHandle hItemRow) From PModelHandle received, it checks if the pay type is PIN_PAY_TYPE_SUBORD or not.boolean
isSettled
(PModelHandle hItemRow) Return boolean flag of a disputed item's settlement statesettleDisputes
(ArrayList aList) CallPortalOp.BILL_ITEM_SETTLEMENT
settle given disputed bill item.void
Theupdate
method is called by various internal methods when the data has changed enough to require changing the client display.Methods inherited from class com.portal.bas.comp.PIAComponentCollectionBean
addChild, getCollectedData, getSelectionDataFor, removeChild
Methods inherited from class com.portal.bas.PControllerImpl
addRemoteListener, closeSecContext, createClientException, distributeEventToListeners, fireModelChangeEvent, getAppController, getArrayRange, getContext, getField, getField, getField, getFieldWithRestriction, getFieldWithRestriction, getFieldWithRestriction, getModel, getRemoteListenerHandle, getSecContext, handleDistributeToListener, isLight, register, releaseContext, releaseRemoteListener, removeRemoteListener, setField, setField, setModel, unreferenced
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.portal.bas.PControllerBean
addRemoteListener, getArrayRange, getModel, getRemoteListenerHandle, isLight, register, releaseRemoteListener, removeRemoteListener, setModel
-
Field Details
-
FAIL_PERMISSION
-
FAIL_EBUFEXCEPTION
-
SUCCESS_STR
-
-
Constructor Details
-
PARDisputesPageBeanImpl
- Throws:
RemoteException
-
-
Method Details
-
update
Description copied from class:PControllerImpl
Theupdate
method is called by various internal methods when the data has changed enough to require changing the client display. Must be overridden by a specific controller subclass.- Overrides:
update
in classPIAComponentCollectionBean
- Parameters:
reason
-incoming
-- Throws:
RemoteException
-
getDisputes
public PModelHandle getDisputes(PModelHandle hDispute, PModelHandle hSettlement, int nIncludeChildren, PModelHandle hAcct, PModelHandle hArAcct) throws RemoteException CallPortalOp.AR_GET_DISPUTES
to get a list of disputed items.- Specified by:
getDisputes
in interfacePARDisputesPageBean
- Parameters:
hDispute
- model handle for the dispute item, if null all disputes for the given account is returned.hSettlement
- model handle for the settlement poid (only used in the case where a previously unresolved dispute is settled) for the given account is returned.nIncludeChildren
- Flag to indicate if amounts from child account(s) should (1) or should not (0) be includedhAcct
- The accounthArAcct
- The account's A/R parent- Returns:
- model handle for the bill item with dispute(s)
- Throws:
RemoteException
-
convertCurrencyToResource
- Throws:
RemoteException
-
settleDisputes
CallPortalOp.BILL_ITEM_SETTLEMENT
settle given disputed bill item.- Specified by:
settleDisputes
in interfacePARDisputesPageBean
- Parameters:
aList
- An ArrayList containing these items:
- bill item model handle
- currency id
- comments
- settlement amount
- backdating date (or null)
- Returns:
- the poid of the settlement item
- Throws:
RemoteException
-
getSettlementAmount
this method returns only item dispute amount and removes event dispute amount from the disputed amount.- Specified by:
getSettlementAmount
in interfacePARDisputesPageBean
- Returns:
- open item dispute amount.
- Throws:
RemoteException
-
disputeItem
CallPortalOp.AR_ITEM_DISPUTE
dispute given bill item. Return a Comment string whether the dispute went through successfully or not.- Specified by:
disputeItem
in interfacePARDisputesPageBean
- Parameters:
handle
- model handle for the bill itemarrList
- An ArrayList containing these items:
- bill item model handle
- dispute amount
- currency id
- program name
- descr
- Returns:
- Comment for disputed item(s)
- Throws:
RemoteException
-
getDisputesNotes
Return the comments for disputed item(s), comments concatenated in the case for multiple disputes associated with a single bill item- Specified by:
getDisputesNotes
in interfacePARDisputesPageBean
- Parameters:
hRow
- model handle for the disputed bill item- Returns:
- Comments for disputed item(s)
- Throws:
RemoteException
-
isSettled
Return boolean flag of a disputed item's settlement state- Specified by:
isSettled
in interfacePARDisputesPageBean
- Parameters:
hRow
- model handle for the dispute item- Returns:
- boolean flag of a disputed item's settlement state
- Throws:
RemoteException
-
getReasonCodes
return reason code for given reason type- Specified by:
getReasonCodes
in interfacePARDisputesPageBean
- Throws:
RemoteException
-
isPayingParentAccount
From PModelHandle received, it checks if the pay type is PIN_PAY_TYPE_SUBORD or not.- Specified by:
isPayingParentAccount
in interfacePARDisputesPageBean
- Parameters:
hItemRow
- model handle for the account bill info- Returns:
- a flag which says whether the Account is Paying Parent or not
- Throws:
RemoteException
-
getItemDisputeTime
from model handle, it fetches for latest FldEffectiveT, that is last opened dispute date- Specified by:
getItemDisputeTime
in interfacePARDisputesPageBean
- Parameters:
mHandle
- PModelHandle- Returns:
- Date
-
getEventSettlementModelHandle
public PModelHandle getEventSettlementModelHandle(PModelHandle hRow, int primaryCurrency, int secondaryCurrency, int displayedCur) throws Exception if the displayed currency is not equal to primary currency, then converts the resource id and amount to displayed currency and updates the model handle.- Specified by:
getEventSettlementModelHandle
in interfacePARDisputesPageBean
- Parameters:
hRow
- PModelHandle- Returns:
- PModelHandle
- Throws:
Exception
-