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 theAction
method 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 theAction
method 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 bilInfovoid
getBalGrpsAndSvcsForAcctAndBillInfo
(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 void
Parses the output flist with default account level balance group, billinfo and account poidprotected void
Parses the output flist with balance groups and servicesprotected void
processBillinfoArray
(SparseArray billInfoArray) protected Hashtable
Parses the output flist with balances information.protected void
processNameinfoArray
(SparseArray nameinfoArray) void
processOutputFlistOfBillinfos
(PModelHandle mhBillInfos) Parses the output flist with all the billinfos and its details for the given account poidvoid
setAccountPoid
(Poid pAcctPoid) Sets the account poidvoid
setBalanceGroupPoid
(Poid pBalGrpPoid) Sets the Balance Group poidvoid
setBillinfoPoid
(Poid pBillinfoPoid) Sets the Billinfo poidprotected void
setCurrencyData
(Object Result) The setter method used to set the Non Currency Resource indexed property at indexprotected void
setNonCurrencyData
(Object Result) The setter method used to set the Non Currency Resrouce indexed property at indexvoid
Updates the balance panel with the balance information for the current account.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
-
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:
getCurrencyData
in interfacePIABalanceInfoBean
- Returns:
- mCurrency
-
getCurrencyData
The getter method to access the Currency Resource at index when the bean is loaded- Specified by:
getCurrencyData
in 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:
getNonCurrencyData
in interfacePIABalanceInfoBean
- Returns:
- mCurrency
-
getNonCurrencyData
The getter method to access the Non Currency Reource at index when the bean is loaded- Specified by:
getNonCurrencyData
in 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:
update
in interfacePIABalanceInfoBean
- Overrides:
update
in classPIAComponentCollectionBean
- Parameters:
reason
-data
-- Throws:
RemoteException
-
getCurrencySymbol
Used to retrieve the currency symbol for a given row- Specified by:
getCurrencySymbol
in interfacePIABalanceInfoBean
- Parameters:
index
-- Throws:
RemoteException
-
getBEIDData
- Specified by:
getBEIDData
in interfacePIABalanceInfoBean
- Throws:
RemoteException
-
getBEIDDescription
- Specified by:
getBEIDDescription
in interfacePIABalanceInfoBean
- Throws:
RemoteException
-
isSecIDNonZero
- Specified by:
isSecIDNonZero
in interfacePIABalanceInfoBean
- Throws:
RemoteException
-
getReasonData
- Specified by:
getReasonData
in interfacePIABalanceInfoBean
- Throws:
RemoteException
-
setAccountPoid
Sets the account poid- Specified by:
setAccountPoid
in interfacePIABalanceInfoBean
- Parameters:
pAcctPoid
- aPoid
for an account- Throws:
RemoteException
-
getAccountPoid
Gets the account poid- Specified by:
getAccountPoid
in interfacePIABalanceInfoBean
- Returns:
- pAcctPoid a
Poid
for an account
-
setBalanceGroupPoid
Sets the Balance Group poid- Specified by:
setBalanceGroupPoid
in interfacePIABalanceInfoBean
- Parameters:
pBalGrpPoid
- aPoid
for Balance Group
-
getBalanceGroupPoid
Gets the Balance Group poid- Specified by:
getBalanceGroupPoid
in interfacePIABalanceInfoBean
- Returns:
- pBalGrpPoid a
Poid
for Balance Group
-
setBillinfoPoid
Sets the Billinfo poid- Specified by:
setBillinfoPoid
in interfacePIABalanceInfoBean
- Parameters:
pBillinfoPoid
- aPoid
for billinfo
-
getBillinfoPoid
Gets the Billinfo poid- Specified by:
getBillinfoPoid
in interfacePIABalanceInfoBean
- Returns:
- pBillinfoPoid a
Poid
for Billinfo
-
getAllSvcLvlBillinfos
Gets the available billinfo's for given account.- Specified by:
getAllSvcLvlBillinfos
in interfacePIABalanceInfoBean
- Returns:
- A
Hashtable
of billinfo details.
-
getAcctLvlBillinfoDetails
Gets the available billinfo to which default accoutn level balance group is associated with for given account.- Specified by:
getAcctLvlBillinfoDetails
in interfacePIABalanceInfoBean
- Returns:
- A
Hashtable
of billinfo details.
-
getAllNameinfo
Gets the available nameinfo for given account.- Specified by:
getAllNameinfo
in interfacePIABalanceInfoBean
- Returns:
- A
Hashtable
of nameinfo details.
-
getCurrencyCurrentBal
Gets the Current balance for currency balance group- Specified by:
getCurrencyCurrentBal
in interfacePIABalanceInfoBean
- Returns:
- mCurrentBalance a
BigDecimal
current balance amount for the currency balance
-
getBalancesForAcctAndBillinfo
Gets the available balances for given account and billinfo poid- Returns:
- A
Hashtable
of balances details.
-
getSvcsForBalGrpOfAcctAndBillinfo
Gets the available services for the balance group for given account and billinfo poid- Specified by:
getSvcsForBalGrpOfAcctAndBillinfo
in interfacePIABalanceInfoBean
- Returns:
- A
Hashtable
of 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:
getBalsOfAllBalGrpsOfAcctAndBillinfo
in interfacePIABalanceInfoBean
- Returns:
- A
Hashtable
of 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:
getCurrencyCreditLimitForBillunit
in interfacePIABalanceInfoBean
- Returns:
- A
BigDecimal
Credit 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 theAction
method for the bean.- Specified by:
getAcctLvlBalanceGroupAndBillinfoID
in interfacePIABalanceInfoBean
- Parameters:
mHAcct
- thePModelHandle
for the accountbundle
- the resource bundle- Returns:
- mHBalGrp the
PModelHandle
for 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 theAction
method for the bean.- Specified by:
getBalancesForAcctAndBalGrpID
in interfacePIABalanceInfoBean
- Parameters:
pAcctPoid
- account POID.pBalGrpPoid
- Balance Group POID.- Returns:
- A
Hashtable
of 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
Hashtable
of 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
- thePModelHandle
for 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:
getBalGrpsAndSvcsForAcctAndBillInfo
in 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:
getAllBillInfoAndDetailsForAcct
in interfacePIABalanceInfoBean
- Parameters:
mHAcct
- thePModelHandle
for the account- Returns:
- mhBillInfos the
PModelHandle
for 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:
processOutputFlistOfBillinfos
in interfacePIABalanceInfoBean
- Parameters:
mhBillInfos
- thePModelHandle
for 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:
getPrimaryCurrencySymbol
in interfacePIABalanceInfoBean
- Returns:
- mPrimaryCurrencySymbol a
String
of primary currency symbol
-
getBalanceSummaryForBillInfo
public BigDecimal getBalanceSummaryForBillInfo(Poid billInfoPoid, int nIncludeChildren) throws RemoteException method for geting the currency balance of selected bilInfo- Specified by:
getBalanceSummaryForBillInfo
in interfacePIABalanceInfoBean
- Parameters:
billInfoPoid
- selected BillInfoPOID.nIncludeChildren
- flag to include child Accounts- Returns:
- BigDecimal Currency balance of selected bilInfo
- Throws:
RemoteException
-