public class PAccountInfo extends Object
Modifier and Type | Field and Description |
---|---|
int |
ACTIVE |
int |
CLOSED |
int |
DEFUNCT |
int |
INACTIVE |
protected int |
mAccessOrder |
protected PModelHandle |
mAccount |
protected Locale |
mAccountLocale |
protected PModelHandle |
mARAccount |
protected PModelHandle |
mARAccountBillInfo |
protected PARSharedData |
mARData |
protected PScopeEntryPoint |
mBrandScope |
protected int[] |
mCurrencies |
protected int |
mDisplayCurrency |
protected boolean |
mHasChildren |
protected boolean |
mIsSponsor |
protected String |
mIsSponsorNew |
protected boolean |
mIsSubordinate |
protected boolean |
mNeedsUpdate |
protected PModelHandle |
mParent |
protected ArrayList |
msubscriptionSvcList |
protected boolean |
mTopParent |
Constructor and Description |
---|
PAccountInfo(PModelHandle pm)
Creates a new PAccountInfo object.
|
Modifier and Type | Method and Description |
---|---|
void |
destructor() |
void |
disposeAllResources()
Calling this method will nullify the references,
so that garbage collection will be fast.
|
int |
getAccessOrder()
Retrieves the access order for this account
|
PModelHandle |
getAccount() |
PModelHandle |
getAccountArBillInfo()
Returns the account level bill info object.
|
Locale |
getAccountLocale()
Retrieves the locale of this account.
|
Poid |
getAccountPoid() |
Vector |
getAllBillInfoPods()
Method which returns the billInfos poids
|
Vector |
getAllBillInfos()
Method which returns the billInfos
|
PModelHandle |
getAllBillInfosAndNameInfos() |
PModelHandle |
getARAccount()
Return the A/R parent of this account.
|
PARSharedData |
getARData()
Retrieves the AR shared data object
|
int |
getBalanceGroupCount(Poid billinfoPoid)
Returns the balance group count for the passed bill info poid.
|
PModelHandle |
getBillInfo(Poid p,
boolean refresh) |
int |
getBillinfoServiceCount(Poid billinfoPoid,
boolean isAllBillInfoSelected)
Returns the service count for the passed bill info poid.
|
PScopeEntryPoint |
getBrand()
Return the brand info for this account
|
boolean |
getChangeStatusPageMode()
Returns true if "change status" page is opened from services tab,
otherwise false.
|
int |
getCountServicesTab()
Gets the services count, used only for services tab.
|
int[] |
getCurrencies()
Return the int codes representing the primary/secondary currency for
this account.
|
Poid |
getDefaultBalanceGroup()
Returns the default balance group poid of an account.
|
int |
getDisplayCurrency() |
PModelHandle |
getParent()
Return the parent of this account.
|
PModelHandle |
getServicesTabServices()
Gets the selected services, used only for services tab.
|
ArrayList |
getSubscriptionServices(boolean forceRefresh)
Retrieves all the subscription Services for the selected Account
|
double |
getTotalDueNow()
Method which returns the total due amount of the account including the child accounts
|
BigDecimal |
getTotalOpenBillDue()
Method which returns the total open bill due for an account
|
BigDecimal |
getTotalPendingBillDue()
Method which returns the total pending bill due for an account
|
boolean |
hasAccountPendingBill()
Method which returns true only when there is a pending bill due for an account
|
boolean |
hasBillHirarchy() |
boolean |
hasChildren() |
boolean |
hasChildren(FList billInfoFList)
Determines if the given bill unit has subordinate children
|
boolean |
hasChildren(PModelHandle p)
Determines if the given bill unit has subordinate children
|
boolean |
hasSubscriptionService() |
void |
initializeBillCombos() |
boolean |
isParent()
Returns true if this account is the top most account in the hiearchy, it means no parents for this account.
|
boolean |
isSponsor() |
boolean |
isSubordinate() |
boolean |
isSubordinate(FList billInfoFList)
Determines if the given buill unit is subordinate to another bill unit
|
boolean |
isSubordinate(PModelHandle p)
Determines if the given buill unit is subordinate to another bill unit
|
void |
refresh()
Called to refresh all the data via a call to Portal, but this
occurs only if the data is marked as needing an update.
|
void |
reloadOpenAndPendingBillDues()
After billing we need to reload open and pending bill dues.
|
void |
setAccessOrder(int order)
Application-specific state.
|
void |
setChangeStatusPageMode(boolean mode)
Pass true if "change status" page is called from "services" tab,
If from "summary" tab, then pass "false".
|
void |
setCountServicesTab(int intServices)
Set the services count, used only for services tab.
|
void |
setDisplayCurrency(int cur) |
void |
setServicesTabServices(PModelHandle pmhServices)
Set the selected services, used only for services tab.
|
void |
setUpdateNeeded()
Marks this data class as needing an update from Portal.
|
protected PModelHandle mAccount
protected PModelHandle mParent
protected PModelHandle mARAccount
protected PModelHandle mARAccountBillInfo
protected PScopeEntryPoint mBrandScope
protected int[] mCurrencies
protected int mDisplayCurrency
protected boolean mNeedsUpdate
protected boolean mIsSubordinate
protected boolean mHasChildren
protected boolean mIsSponsor
protected boolean mTopParent
protected String mIsSponsorNew
protected int mAccessOrder
protected Locale mAccountLocale
protected PARSharedData mARData
protected ArrayList msubscriptionSvcList
public final int ACTIVE
public final int INACTIVE
public final int CLOSED
public final int DEFUNCT
public PAccountInfo(PModelHandle pm)
pm
- The PModelHandle representing the account objectpublic void initializeBillCombos()
public PModelHandle getAccount()
public Poid getAccountPoid()
public PModelHandle getParent()
public PModelHandle getARAccount()
public boolean hasChildren()
public boolean hasChildren(PModelHandle p)
p
- An bill unit object represented as a PModelHandlepublic boolean hasChildren(FList billInfoFList)
billInfoFList
- An bill unit object represented as a FListpublic boolean isSubordinate()
public boolean isSubordinate(PModelHandle p)
p
- An bill unit object represented as a PModelHandlepublic boolean isSubordinate(FList billInfoFList)
p
- An bill unit object represented as a FListpublic boolean isSponsor()
public boolean hasSubscriptionService()
public ArrayList getSubscriptionServices(boolean forceRefresh)
forceRefresh
- if true will get the data from Infranet server
otherwise, it will return data from the cachepublic PScopeEntryPoint getBrand()
public int[] getCurrencies()
public void setUpdateNeeded()
public void refresh() throws RemoteException
RemoteException
public int getBalanceGroupCount(Poid billinfoPoid)
billinfoPoid
- public int getBillinfoServiceCount(Poid billinfoPoid, boolean isAllBillInfoSelected)
billinfoPoid
- isAllBillInfoSelected
- public PModelHandle getAccountArBillInfo()
public void setAccessOrder(int order)
The
- order of accesspublic void setDisplayCurrency(int cur)
public int getDisplayCurrency()
public int getAccessOrder()
public Locale getAccountLocale()
public PARSharedData getARData()
public Vector getAllBillInfos()
public Vector getAllBillInfoPods()
public void reloadOpenAndPendingBillDues()
public BigDecimal getTotalPendingBillDue()
public BigDecimal getTotalOpenBillDue()
public double getTotalDueNow()
public boolean hasAccountPendingBill()
public PModelHandle getAllBillInfosAndNameInfos()
public void destructor()
public boolean hasBillHirarchy()
public PModelHandle getBillInfo(Poid p, boolean refresh)
public void disposeAllResources()
public boolean isParent()
public void setServicesTabServices(PModelHandle pmhServices)
pmhServices
- public PModelHandle getServicesTabServices()
pmhServices
- public void setCountServicesTab(int intServices)
intServices
- public int getCountServicesTab()
intCountServicesTab
- public void setChangeStatusPageMode(boolean mode)
mode
- public boolean getChangeStatusPageMode()
public Poid getDefaultBalanceGroup()
Copyright © 2003, 2023, Oracle and/or its affiliates.