Package com.portal.app.ccare.comp
Class PIABalanceInfoBeanImpl
java.lang.Object
com.portal.bas.PControllerImpl
com.portal.bas.comp.PIAComponentCollectionBean
com.portal.app.ccare.comp.PIABalanceInfoBeanImpl
- All Implemented Interfaces:
PIABalanceInfoBean,PIACollectionBean,PControllerBean,Serializable,Remote,Unreferenced
public class PIABalanceInfoBeanImpl
extends PIAComponentCollectionBean
implements PIABalanceInfoBean
Controller object for the Account Balance
- Author:
- Kapono Carter
- See Also:
-
Field Summary
Fields inherited from class com.portal.bas.PControllerImpl
mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY -
Constructor Summary
ConstructorsConstructorDescriptionCreates a controller for the to retrive the balances array -
Method Summary
Modifier and TypeMethodDescriptionGets the account poidgetAcctLvlBalanceGroupAndBillinfoID(PModelHandle mHAcct, ResourceBundle bundle) Gets default account level billinfo and balance group Poid.This is theActionmethod for the bean.Gets the available billinfo to which default accoutn level balance group is associated with for given account.Gets all billinfo details for the the given account poidGets the available nameinfo for given account.Gets the available billinfo's for given account.Gets the Balance Group poidgetBalancesForAcctAndBalGrpID(Poid pAcctPoid, Poid pBalGrpPoid) Gets balance details for the given account and balance group Poid.This is theActionmethod for the bean.Gets the available balances for given account and billinfo poidgetBalanceSummaryForBillInfo(Poid billInfoPoid, int nIncludeChildren) method for geting the currency balance of selected bilInfovoidgetBalGrpsAndSvcsForAcctAndBillInfo(Poid pAcctPoid, Poid pBillinfoPoid) Gets balance groups and services details associated to the given account and billinfo objects.Gets the available balances for each balance group for given account and billinfo poidgetBEIDData(int index, boolean currency) getBEIDDescription(int index) Gets the Billinfo poidGets the Credit limit for selected Billinfo .Gets the Current balance for currency balance groupThe getter method to access the Currency Resource when the bean is loaded.getCurrencyData(int index) The getter method to access the Currency Resource at index when the bean is loadedgetCurrencySymbol(int index) Used to retrieve the currency symbol for a given rowThe getter method to access the Non Currency Resource when the bean is loaded.getNonCurrencyData(int index) The getter method to access the Non Currency Reource at index when the bean is loadedGets the primary currency symbol of the account.getReasonData(Object eventData) Gets the available services for the balance group for given account and billinfo poidprotected voidParses the output flist with default account level balance group, billinfo and account poidprotected voidParses the output flist with balance groups and servicesprotected voidprocessBillinfoArray(SparseArray billInfoArray) protected HashtableParses the output flist with balances information.protected voidprocessNameinfoArray(SparseArray nameinfoArray) voidprocessOutputFlistOfBillinfos(PModelHandle mhBillInfos) Parses the output flist with all the billinfos and its details for the given account poidvoidsetAccountPoid(Poid pAcctPoid) Sets the account poidvoidsetBalanceGroupPoid(Poid pBalGrpPoid) Sets the Balance Group poidvoidsetBillinfoPoid(Poid pBillinfoPoid) Sets the Billinfo poidprotected voidsetCurrencyData(Object Result) The setter method used to set the Non Currency Resource indexed property at indexprotected voidsetNonCurrencyData(Object Result) The setter method used to set the Non Currency Resrouce indexed property at indexvoidUpdates the balance panel with the balance information for the current account.Methods inherited from class com.portal.bas.comp.PIAComponentCollectionBean
addChild, getCollectedData, getSelectionDataFor, removeChildMethods 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, unreferencedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.portal.bas.PControllerBean
addRemoteListener, getArrayRange, getModel, getRemoteListenerHandle, isLight, register, releaseRemoteListener, removeRemoteListener, setModel
-
Constructor Details
-
PIABalanceInfoBeanImpl
Creates a controller for the to retrive the balances array- Throws:
RemoteException
-
-
Method Details
-
getCurrencyData
The getter method to access the Currency Resource when the bean is loaded.- Specified by:
getCurrencyDatain interfacePIABalanceInfoBean- Returns:
- mCurrency
-
getCurrencyData
The getter method to access the Currency Resource at index when the bean is loaded- Specified by:
getCurrencyDatain interfacePIABalanceInfoBean- Parameters:
index-
-
setCurrencyData
The setter method used to set the Non Currency Resource indexed property at index- Parameters:
Result- - Object
-
getNonCurrencyData
The getter method to access the Non Currency Resource when the bean is loaded.- Specified by:
getNonCurrencyDatain interfacePIABalanceInfoBean- Returns:
- mCurrency
-
getNonCurrencyData
The getter method to access the Non Currency Reource at index when the bean is loaded- Specified by:
getNonCurrencyDatain interfacePIABalanceInfoBean- Parameters:
index-
-
setNonCurrencyData
The setter method used to set the Non Currency Resrouce indexed property at index- Parameters:
Result- - Object
-
update
Updates the balance panel with the balance information for the current account. The primary and secondary currency (if any) is retrieved, as well as the current balance and credit limit.- Specified by:
updatein interfacePIABalanceInfoBean- Overrides:
updatein classPIAComponentCollectionBean- Parameters:
reason-data-- Throws:
RemoteException
-
getCurrencySymbol
Used to retrieve the currency symbol for a given row- Specified by:
getCurrencySymbolin interfacePIABalanceInfoBean- Parameters:
index-- Throws:
RemoteException
-
getBEIDData
- Specified by:
getBEIDDatain interfacePIABalanceInfoBean- Throws:
RemoteException
-
getBEIDDescription
- Specified by:
getBEIDDescriptionin interfacePIABalanceInfoBean- Throws:
RemoteException
-
isSecIDNonZero
- Specified by:
isSecIDNonZeroin interfacePIABalanceInfoBean- Throws:
RemoteException
-
getReasonData
- Specified by:
getReasonDatain interfacePIABalanceInfoBean- Throws:
RemoteException
-
setAccountPoid
Sets the account poid- Specified by:
setAccountPoidin interfacePIABalanceInfoBean- Parameters:
pAcctPoid- aPoidfor an account- Throws:
RemoteException
-
getAccountPoid
Gets the account poid- Specified by:
getAccountPoidin interfacePIABalanceInfoBean- Returns:
- pAcctPoid a
Poidfor an account
-
setBalanceGroupPoid
Sets the Balance Group poid- Specified by:
setBalanceGroupPoidin interfacePIABalanceInfoBean- Parameters:
pBalGrpPoid- aPoidfor Balance Group
-
getBalanceGroupPoid
Gets the Balance Group poid- Specified by:
getBalanceGroupPoidin interfacePIABalanceInfoBean- Returns:
- pBalGrpPoid a
Poidfor Balance Group
-
setBillinfoPoid
Sets the Billinfo poid- Specified by:
setBillinfoPoidin interfacePIABalanceInfoBean- Parameters:
pBillinfoPoid- aPoidfor billinfo
-
getBillinfoPoid
Gets the Billinfo poid- Specified by:
getBillinfoPoidin interfacePIABalanceInfoBean- Returns:
- pBillinfoPoid a
Poidfor Billinfo
-
getAllSvcLvlBillinfos
Gets the available billinfo's for given account.- Specified by:
getAllSvcLvlBillinfosin interfacePIABalanceInfoBean- Returns:
- A
Hashtableof billinfo details.
-
getAcctLvlBillinfoDetails
Gets the available billinfo to which default accoutn level balance group is associated with for given account.- Specified by:
getAcctLvlBillinfoDetailsin interfacePIABalanceInfoBean- Returns:
- A
Hashtableof billinfo details.
-
getAllNameinfo
Gets the available nameinfo for given account.- Specified by:
getAllNameinfoin interfacePIABalanceInfoBean- Returns:
- A
Hashtableof nameinfo details.
-
getCurrencyCurrentBal
Gets the Current balance for currency balance group- Specified by:
getCurrencyCurrentBalin interfacePIABalanceInfoBean- Returns:
- mCurrentBalance a
BigDecimalcurrent balance amount for the currency balance
-
getBalancesForAcctAndBillinfo
Gets the available balances for given account and billinfo poid- Returns:
- A
Hashtableof balances details.
-
getSvcsForBalGrpOfAcctAndBillinfo
Gets the available services for the balance group for given account and billinfo poid- Specified by:
getSvcsForBalGrpOfAcctAndBillinfoin interfacePIABalanceInfoBean- Returns:
- A
Hashtableof services associated to all balances groups of given billinfo.
-
getBalsOfAllBalGrpsOfAcctAndBillinfo
Gets the available balances for each balance group for given account and billinfo poid- Specified by:
getBalsOfAllBalGrpsOfAcctAndBillinfoin interfacePIABalanceInfoBean- Returns:
- A
Hashtableof balances details for all balances groups of given billinfo.
-
getCurrencyCreditLimitForBillunit
Gets the Credit limit for selected Billinfo . This method does a summation of the Credit limit of all Balance Groups of a given Billinfo. If the Credit Limit of any Balance Group is unlimited then this method will return a null.- Specified by:
getCurrencyCreditLimitForBillunitin interfacePIABalanceInfoBean- Returns:
- A
BigDecimalCredit limit of given billinfo.
-
getAcctLvlBalanceGroupAndBillinfoID
public PModelHandle getAcctLvlBalanceGroupAndBillinfoID(PModelHandle mHAcct, ResourceBundle bundle) throws RemoteException Gets default account level billinfo and balance group Poid.This is theActionmethod for the bean.- Specified by:
getAcctLvlBalanceGroupAndBillinfoIDin interfacePIABalanceInfoBean- Parameters:
mHAcct- thePModelHandlefor the accountbundle- the resource bundle- Returns:
- mHBalGrp the
PModelHandlefor Flist containing account poid and default account level balance group and billinfo poid's. - Throws:
RemoteException- thrown if no billinfo and balance group found or for null POIDs
-
getBalancesForAcctAndBalGrpID
public Hashtable getBalancesForAcctAndBalGrpID(Poid pAcctPoid, Poid pBalGrpPoid) throws RemoteException Gets balance details for the given account and balance group Poid.This is theActionmethod for the bean.- Specified by:
getBalancesForAcctAndBalGrpIDin interfacePIABalanceInfoBean- Parameters:
pAcctPoid- account POID.pBalGrpPoid- Balance Group POID.- Returns:
- A
Hashtableof balances details. - Throws:
RemoteException- thrown if no balances found or for null POIDs
-
processGetBalancesOutputFlist
Parses the output flist with balances information.- Parameters:
flOut- the Flist containing balances information.- Returns:
- A
Hashtableof balances details. - Throws:
RemoteException- thrown if no Balances are found or for null POIDs
-
processAcctLvlBalGrpAndBillinfoMH
Parses the output flist with default account level balance group, billinfo and account poid- Parameters:
mHBalGrp- thePModelHandlefor Flist containing account poid and default account level balance group and billinfo poid's.- Throws:
RemoteException- thrown if no billinfo, balance group are found or for null POIDs
-
getBalGrpsAndSvcsForAcctAndBillInfo
public void getBalGrpsAndSvcsForAcctAndBillInfo(Poid pAcctPoid, Poid pBillinfoPoid) throws RemoteException Gets balance groups and services details associated to the given account and billinfo objects.- Specified by:
getBalGrpsAndSvcsForAcctAndBillInfoin interfacePIABalanceInfoBean- Parameters:
pAcctPoid- account POID.pBillinfoPoid- Billinfo POID.- Throws:
RemoteException- thrown if no balace groups and services are found or for null POIDs
-
processBalGrpAndSvcOutputFlist
Parses the output flist with balance groups and services- Parameters:
flOut- the Flist containing balance groups and services.- Throws:
RemoteException- thrown if no Balance groups and services are found or for null POIDs
-
getAllBillInfoAndDetailsForAcct
Gets all billinfo details for the the given account poid- Specified by:
getAllBillInfoAndDetailsForAcctin interfacePIABalanceInfoBean- Parameters:
mHAcct- thePModelHandlefor the account- Returns:
- mhBillInfos the
PModelHandlefor the list of all the billinfo's and its details for given account. - Throws:
RemoteException- thrown if no billinfo's are found or for null POIDs
-
processOutputFlistOfBillinfos
Parses the output flist with all the billinfos and its details for the given account poid- Specified by:
processOutputFlistOfBillinfosin interfacePIABalanceInfoBean- Parameters:
mhBillInfos- thePModelHandlefor Flist containing all the billinfos and its details for the given account poid.- Throws:
RemoteException- thrown if no billinfos are found or for null POIDs
-
processNameinfoArray
- Throws:
RemoteException
-
processBillinfoArray
- Throws:
RemoteException
-
getPrimaryCurrencySymbol
Gets the primary currency symbol of the account.- Specified by:
getPrimaryCurrencySymbolin interfacePIABalanceInfoBean- Returns:
- mPrimaryCurrencySymbol a
Stringof primary currency symbol
-
getBalanceSummaryForBillInfo
public BigDecimal getBalanceSummaryForBillInfo(Poid billInfoPoid, int nIncludeChildren) throws RemoteException method for geting the currency balance of selected bilInfo- Specified by:
getBalanceSummaryForBillInfoin interfacePIABalanceInfoBean- Parameters:
billInfoPoid- selected BillInfoPOID.nIncludeChildren- flag to include child Accounts- Returns:
- BigDecimal Currency balance of selected bilInfo
- Throws:
RemoteException
-