Package com.portal.app.cc.comp
Class PAccountInfoBeanImpl
java.lang.Object
com.portal.app.cc.comp.PAccountInfoBeanImpl
Used to determine paying relationships for accounts
- Version:
- %version: 17 % %date_modified: Fri Apr 05 13:41:26 2002 %
- Author:
- kapono
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Calling this method will nullify the references, so that garbage collection will be fast.getAccountArBillInfo
(PModelHandle mAccount) int[]
Used to retrieve the primary and secondary currencies (as ints) for the given account.Retrieves the Portal locale for this accountRetrieves the Java locale for this accountMethod which returns the default account poidObject[]
A convenience method to retrieve the parent, brand, and currencies in one shot.Determines the parent A/R account for a subordinate accountint
getBalanceGroupCount
(Poid billinfoPoid) Return the balance group count for the passed in bill infogetBillInfo
(PModelHandle p, Poid billobj, boolean refresh) Object[]
getBillInfoData
(PModelHandle acct) This method returns the Object array retVal[] with the following details.Method which returns the billInfo poidsgetBillInfos
(PModelHandle p, boolean refresh) int
getBillinfoServiceCount
(Poid billinfoPoid, boolean isAllBillInfoSelected) Returns the service count for the passed in bill unit.Method which returns the billInfosRetrieves the brand for this accountprotected PCachedContext
Returns client context of the customer centerlong
Retrieves the database number where this account residesReturns the default balance group poid of an account.Determines the parent account if this account is in a hierarchydouble
getTotalDueNow
(PModelHandle acctModel) Method which returns the total due amount of the account including the child accountsMethod which returns the total pending bill due for an accountMethod which returns the total open bill due for an accountMethod which returns the total pending bill due for an accountboolean
boolean
Determines if the given account has subordinate childrenvoid
hasChildrenAll
(Hashtable<Poid, Boolean> hChildrenInfo, FList flBillInfos) Determines if the given account has subordinate childrenboolean
Method which returns true only when there is a pending bill due for an accountboolean
isBrandAccount
(Poid acctPoid) boolean
isSponsor
(PModelHandle hAccount) Determines if the given account is a owner of at lease one sponsor group return true if hAccount is a sponsor, return false otherwise.boolean
Determines if the given account is subordinate to another accountvoid
refresh
(PModelHandle p, boolean refresh) void
After billing we need to reload open and pending bill dues.retrieveSubscriptionServices
(PModelHandle hAccount)
-
Constructor Details
-
PAccountInfoBeanImpl
Creates the controller- Throws:
RemoteException
-
-
Method Details
-
isSubordinate
Determines if the given account is subordinate to another account- Parameters:
p
- An account object represented as a PModelHandle- Returns:
- true if this account is subordinate, false otherwise
-
isSponsor
Determines if the given account is a owner of at lease one sponsor group return true if hAccount is a sponsor, return false otherwise.- Parameters:
pAccount
-
-
hasChildren
Determines if the given account has subordinate children- Parameters:
p
- An account object represented as a PModelHandle- Returns:
- true if this account has children, false otherwise
-
hasChildrenAll
Determines if the given account has subordinate children- Parameters:
hChildrenInfo
- result will be filled here.flBillInfos
- , FList of bill infos.
-
getBalanceGroupCount
Return the balance group count for the passed in bill info- Parameters:
billinfoPoid
-- Returns:
-
getBillinfoServiceCount
Returns the service count for the passed in bill unit.- Parameters:
billinfoPoid
-isAllBillInfoSelected
-- Returns:
-
getARBillInfo
Determines the parent A/R account for a subordinate account- Parameters:
p
- An account object represented as a PModelHandle- Returns:
- the A/R account of a given account, could be itself if not a subordinate account
-
getParent
Determines the parent account if this account is in a hierarchy- Parameters:
p
- An account object represented as a PModelHandle- Returns:
- the parent account if this account is part of a hierarchy, null otherwise
-
isBrandAccount
- Throws:
RemoteException
-
getAccountCurrency
Used to retrieve the primary and secondary currencies (as ints) for the given account. These int values can be later passed to the BEID manager for lookup/conversion.- Parameters:
p
- An account object represented as a PModelHandle- Returns:
- An array containing the primary and secondary currencies for this account. If the value for secondary is zero, there is no secondary currency for this account.
- Throws:
PInfranetException
-
getDb
Retrieves the database number where this account resides- Parameters:
p
- An account object represented as a PModelHandle- Returns:
- the database number or -1 if
p
isnull
or if there is an error.
-
getBrand
Retrieves the brand for this account- Parameters:
p
- An account object represented as a PModelHandle- Returns:
- the brand if this account is branded null otherwise
- Throws:
PInfranetException
-
getAccountPoid
Method which returns the default account poid- Returns:
- Poid type ,which is the default account Poid
-
getBillInfosOnly
Method which returns the billInfos- Returns:
- Vector type ,which returns the billinfos
-
hasPendingBill
Method which returns true only when there is a pending bill due for an account- Returns:
- boolean type ,which returns true/false
-
getTotalPendingBillDue
Method which returns the total pending bill due for an account- Returns:
- BigDecimal type ,which returns the total pending bill due
-
getTotalOpenBillDue
Method which returns the total open bill due for an account- Returns:
- BigDecimal type ,which returns the total open bill due
-
getTotalDueNow
Method which returns the total due amount of the account including the child accounts- Parameters:
acctModel
- PModelHandle, account model handle- Returns:
- BigDecimal type ,which returns the total amount due for the account
-
getTotalOpenAndPendingBillDues
Method which returns the total pending bill due for an account- Returns:
- BigDecimal type ,which returns the total pending bill due
-
getBillInfoPods
Method which returns the billInfo poids- Returns:
- Vector type ,which returns the billinfo poids
-
getAccountLocale
Retrieves the Java locale for this account- Parameters:
p
- An account object represented as a PModelHandle- Returns:
- the Java locale for this account or system locale if a corresponding Java locale doesn't exist.
- Throws:
PInfranetException
-
getAccountInfranetLocale
Retrieves the Portal locale for this account- Parameters:
p
- An account object represented as a PModelHandle- Returns:
- the Portal locale for this account.
- Throws:
PInfranetException
-
getBillInfoData
This method returns the Object array retVal[] with the following details. retVal[0] - boolean, This will be true if any of the account's bill unit is paying for some other bill unit. retVal[1] - HashMap, This contains BillInfo poid and FldArBillinfoObj mapping. retVal[2] - HashMap, This contains BillInfo poid and FldBillinfoId mapping.- Parameters:
PModelHandle
- , Account model handle.- Returns:
- Object[]
-
getAllData
A convenience method to retrieve the parent, brand, and currencies in one shot.- Returns:
- An array list containing the parent account, brand, and currency array.
- Throws:
PInfranetException
-
getDefaultBalanceGroup
Returns the default balance group poid of an account.- Returns:
- Poid
-
refresh
-
reloadOpenAndPendingBillDues
public void reloadOpenAndPendingBillDues()After billing we need to reload open and pending bill dues. -
getBillPoidInThis
-
getBillInfos
-
getAccountArBillInfo
-
getBillInfo
-
getContext
Returns client context of the customer center- Returns:
- PCachedContext
- Throws:
RemoteException
-
hasBillHirarchy
public boolean hasBillHirarchy() -
retrieveSubscriptionServices
- Throws:
RemoteException
-
disposeAllResources
public void disposeAllResources()Calling this method will nullify the references, so that garbage collection will be fast.
-