public class PAccountInfoBeanImpl extends Object
Constructor and Description |
---|
PAccountInfoBeanImpl()
Creates the controller
|
Modifier and Type | Method and Description |
---|---|
void |
disposeAllResources()
Calling this method will nullify the references,
so that garbage collection will be fast.
|
PModelHandle |
getAccountArBillInfo(PModelHandle mAccount) |
int[] |
getAccountCurrency(PModelHandle p)
Used to retrieve the primary and secondary currencies (as ints) for
the given account.
|
String |
getAccountInfranetLocale(PModelHandle p)
Retrieves the Portal locale for this account
|
Locale |
getAccountLocale(PModelHandle p)
Retrieves the Java locale for this account
|
Poid |
getAccountPoid(PModelHandle pm)
Method which returns the default account poid
|
Object[] |
getAllData(PModelHandle p)
A convenience method to retrieve the parent, brand, and currencies
in one shot.
|
PModelHandle |
getARBillInfo(PModelHandle p)
Determines the parent A/R account for a subordinate account
|
int |
getBalanceGroupCount(Poid billinfoPoid)
Return the balance group count for the passed in bill info
|
PModelHandle |
getBillInfo(PModelHandle p,
Poid billobj,
boolean refresh) |
Object[] |
getBillInfoData(PModelHandle acct)
This method returns the Object array retVal[] with the following details.
|
Vector<Poid> |
getBillInfoPods(PModelHandle p)
Method which returns the billInfo poids
|
PModelHandle |
getBillInfos(PModelHandle p,
boolean refresh) |
int |
getBillinfoServiceCount(Poid billinfoPoid,
boolean isAllBillInfoSelected)
Returns the service count for the passed in bill unit.
|
Vector<FList> |
getBillInfosOnly(PModelHandle p)
Method which returns the billInfos
|
Poid |
getBillPoidInThis(PModelHandle pm) |
PScopeEntryPoint |
getBrand(PModelHandle p)
Retrieves the brand for this account
|
protected PCachedContext |
getContext()
Returns client context of the customer center
|
long |
getDb(PModelHandle p)
Retrieves the database number where this account resides
|
Poid |
getDefaultBalanceGroup()
Returns the default balance group poid of an account.
|
PModelHandle |
getParent(PModelHandle p)
Determines the parent account if this account is in a hierarchy
|
double |
getTotalDueNow(PModelHandle acctModel)
Method which returns the total due amount of the account including the child accounts
|
BigDecimal[] |
getTotalOpenAndPendingBillDues(PModelHandle p)
Method which returns the total pending bill due for an account
|
BigDecimal |
getTotalOpenBillDue(PModelHandle p)
Method which returns the total open bill due for an account
|
BigDecimal |
getTotalPendingBillDue(PModelHandle p)
Method which returns the total pending bill due for an account
|
boolean |
hasBillHirarchy() |
boolean |
hasChildren(PModelHandle p)
Determines if the given account has subordinate children
|
void |
hasChildrenAll(Hashtable<Poid,Boolean> hChildrenInfo,
FList flBillInfos)
Determines if the given account has subordinate children
|
boolean |
hasPendingBill(PModelHandle p)
Method which returns true only when there is a pending bill due for an account
|
boolean |
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 |
isSubordinate(PModelHandle p)
Determines if the given account is subordinate to another account
|
void |
refresh(PModelHandle p,
boolean refresh) |
void |
reloadOpenAndPendingBillDues()
After billing we need to reload open and pending bill dues.
|
ArrayList<Poid> |
retrieveSubscriptionServices(PModelHandle hAccount) |
public PAccountInfoBeanImpl() throws RemoteException
RemoteException
public boolean isSubordinate(PModelHandle p)
p
- An account object represented as a PModelHandlepublic boolean isSponsor(PModelHandle hAccount)
pAccount
- public boolean hasChildren(PModelHandle p)
p
- An account object represented as a PModelHandlepublic void hasChildrenAll(Hashtable<Poid,Boolean> hChildrenInfo, FList flBillInfos)
hChildrenInfo
- result will be filled here.flBillInfos,
- FList of bill infos.public int getBalanceGroupCount(Poid billinfoPoid)
billinfoPoid
- public int getBillinfoServiceCount(Poid billinfoPoid, boolean isAllBillInfoSelected)
billinfoPoid
- isAllBillInfoSelected
- public PModelHandle getARBillInfo(PModelHandle p)
p
- An account object represented as a PModelHandlepublic PModelHandle getParent(PModelHandle p)
p
- An account object represented as a PModelHandlepublic boolean isBrandAccount(Poid acctPoid) throws RemoteException
RemoteException
public int[] getAccountCurrency(PModelHandle p) throws PInfranetException
p
- An account object represented as a PModelHandlePInfranetException
public long getDb(PModelHandle p)
p
- An account object represented as a PModelHandlep
is
null
or if there is an error.public PScopeEntryPoint getBrand(PModelHandle p) throws PInfranetException
p
- An account object represented as a PModelHandlePInfranetException
public Poid getAccountPoid(PModelHandle pm)
public Vector<FList> getBillInfosOnly(PModelHandle p)
public boolean hasPendingBill(PModelHandle p)
public BigDecimal getTotalPendingBillDue(PModelHandle p)
public BigDecimal getTotalOpenBillDue(PModelHandle p)
public double getTotalDueNow(PModelHandle acctModel)
acctModel
- PModelHandle, account model handlepublic BigDecimal[] getTotalOpenAndPendingBillDues(PModelHandle p)
public Vector<Poid> getBillInfoPods(PModelHandle p)
public Locale getAccountLocale(PModelHandle p) throws PInfranetException
p
- An account object represented as a PModelHandlePInfranetException
public String getAccountInfranetLocale(PModelHandle p) throws PInfranetException
p
- An account object represented as a PModelHandlePInfranetException
public Object[] getBillInfoData(PModelHandle acct)
PModelHandle,
- Account model handle.public Object[] getAllData(PModelHandle p) throws PInfranetException
PInfranetException
public Poid getDefaultBalanceGroup()
public void refresh(PModelHandle p, boolean refresh)
public void reloadOpenAndPendingBillDues()
public Poid getBillPoidInThis(PModelHandle pm)
public PModelHandle getBillInfos(PModelHandle p, boolean refresh)
public PModelHandle getAccountArBillInfo(PModelHandle mAccount)
public PModelHandle getBillInfo(PModelHandle p, Poid billobj, boolean refresh)
protected PCachedContext getContext()
RemoteException
public boolean hasBillHirarchy()
public ArrayList<Poid> retrieveSubscriptionServices(PModelHandle hAccount) throws RemoteException
RemoteException
public void disposeAllResources()
Copyright © 2003, 2023, Oracle and/or its affiliates.