Package com.portal.app.cc.comp
Class PAcctTreeBeanImpl
java.lang.Object
com.portal.bas.PControllerImpl
com.portal.bas.PFieldControllerBean
com.portal.bas.comp.PIAFieldBean
com.portal.bas.comp.PIAGroupTreeBeanImpl
com.portal.app.cc.comp.PAcctTreeBeanImpl
- All Implemented Interfaces:
PAcctTreeBean
,PIAGroupTreeBean
,PControllerBean
,PFieldBean
,PLightComponent
,PropertyChangeListener
,Serializable
,Remote
,Unreferenced
,EventListener
Controller class for the PAcctTree component
Modified by RamaPrasad
- Version:
- %version: 14 % %date_modified: Thu Nov 08 10:11:39 2001 %
- See Also:
-
Field Summary
Fields inherited from class com.portal.bas.comp.PIAGroupTreeBeanImpl
mLazy
Fields inherited from class com.portal.bas.PControllerImpl
mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread in only the fields required as per the spec, and some additional fields taht will be required irrespective of the specgetChildPayDetailMap
(PModelHandle currentAcctHandle) Prepares the payment type details of all the children of Current Account.void
getRootParentAccount
(boolean viewType, PModelHandle acctMh) The method which gets root parent-childs for accountsgetTree()
returns the tree model built in update()boolean
isLight()
Determines whether this is a lightweight component.boolean
isPayingAccount
(PModelHandle acct) Checks the acct passed has an paying bill unitBuilds a tree model of accounts that are parentsloadChildParents
(PModelHandle acctHandle) Builds a tree model of accounts that are parentsvoid
loadChildPayTypes
(HashMap acctPayTypeMap, PModelHandle[] hChilds) loads the hashmap with the poid and the paytype of the child accounts in the arrayBuilds a tree model of all accounts that are in hierarchyloadDefaultChildParents
(PModelHandle acctHandle) Builds a tree model of accounts that are parentsvoid
Updates the field according to thedisplayFieldDescription
property, if present.Methods inherited from class com.portal.bas.comp.PIAGroupTreeBeanImpl
buildTree, createAccountFlist, getChildren, getDisplayData, getDisplayData, getSelectionDataFor, performSearch, prepareChildList, setLazy
Methods inherited from class com.portal.bas.comp.PIAFieldBean
getDataDescriptor, getLightData, getRemoteListenerHandle, propertyChange, setLightData
Methods inherited from class com.portal.bas.PFieldControllerBean
getAssociatedClass, getDisplayFieldDescription, getDisplaySpec, getField, getFieldSpec, getModelFieldDescription, releaseSpecifications, revertToPrimary, setAssociatedClass, setDisplayFieldDescription, setField, setModelFieldDescription, togglePrimaryToSecondary
Methods inherited from class com.portal.bas.PControllerImpl
addRemoteListener, closeSecContext, createClientException, distributeEventToListeners, fireModelChangeEvent, getAppController, getArrayRange, getContext, getField, getField, getField, getFieldWithRestriction, getFieldWithRestriction, getFieldWithRestriction, getModel, getSecContext, handleDistributeToListener, register, releaseContext, releaseRemoteListener, removeRemoteListener, setField, setField, setModel, unreferenced
-
Constructor Details
-
PAcctTreeBeanImpl
- Throws:
RemoteException
-
-
Method Details
-
isLight
Description copied from class:PControllerImpl
Determines whether this is a lightweight component. Lightweight components do not have their own model. Instead, they use that of their container. This means thatgetModel
always returns null,setModel
is ignored, and no property change events are generated.The default value is false.
- Specified by:
isLight
in interfacePControllerBean
- Overrides:
isLight
in classPControllerImpl
- Returns:
- True if the component is lightweight; false otherwise.
- Throws:
RemoteException
- thrown for errors
-
update
Description copied from class:PIAFieldBean
Updates the field according to thedisplayFieldDescription
property, if present.- Overrides:
update
in classPIAGroupTreeBeanImpl
- Parameters:
reason
- the reason for the updatedata
- the updated object- Throws:
RemoteException
- thrown for all errors
-
getTree
Description copied from interface:PAcctTreeBean
returns the tree model built in update()- Specified by:
getTree
in interfacePAcctTreeBean
- Throws:
RemoteException
-
loadChildParents
Builds a tree model of accounts that are parents- Specified by:
loadChildParents
in interfacePAcctTreeBean
- Returns:
- A hashtable that can be used to set the tree model
- Throws:
RemoteException
-
loadChildParents
Builds a tree model of accounts that are parents- Returns:
- A hashtable that can be used to set the tree model
- Throws:
RemoteException
-
loadDefaultChildParents
Builds a tree model of accounts that are parents- Returns:
- A hashtable that can be used to set the tree model
- Throws:
RemoteException
-
getRootParentAccount
The method which gets root parent-childs for accounts- Parameters:
viewType
- boolean value representing the context of bill unit/account level hierarchyacctMh
- , the account model handle- Throws:
RemoteException
-
createAcctFlistForBillUnit
read in only the fields required as per the spec, and some additional fields taht will be required irrespective of the spec- Parameters:
p
- The account poidspec
- The field spec- Throws:
RemoteException
-
isPayingAccount
Checks the acct passed has an paying bill unit- Specified by:
isPayingAccount
in interfacePAcctTreeBean
- Returns:
- A boolean true if account is paying account else false
- Throws:
RemoteException
-
loadCompleteTree
Builds a tree model of all accounts that are in hierarchy- Specified by:
loadCompleteTree
in interfacePAcctTreeBean
- Returns:
- A hashtable that can be used to set the tree model
- Throws:
RemoteException
-
loadChildPayTypes
loads the hashmap with the poid and the paytype of the child accounts in the array- Parameters:
acctPayTypeMap
- HashMaphChilds
- PModelHandle[] child accounts
-
getChildPayDetailMap
Prepares the payment type details of all the children of Current Account.- Parameters:
currentAcctHandle
- PModelHandle- Returns:
- HashMap
-