Package com.portal.app.cc.sharing
Class PServicesData
java.lang.Object
com.portal.app.cc.sharing.PServicesData
- All Implemented Interfaces:
TreeNode
Title:
Description: This datastructure will contain all the service type datastructure and the service instance datastructure
-
Constructor Summary
ConstructorsConstructorDescriptionPServicesData(String sharingType, Poid serviceParentPoid) PServicesData This is the constructor for PServicesData. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddServiceType(PServiceType serviceType) addServiceType will add aPServiceTypedatastructure toPservicesDatachildren()Returns the children of the receiver as anEnumeration.voidclear()clear will reinitialize the datagetAccountLevelServiceType This returns the account level service type present inPServicesDatabooleangetAllowsChildren will return true if children are allowedgetChildAt(int index) Returns the childTreeNodeat indexchildIndex.intgetChildCount is a overridden method.intReturns the index ofnodein the receivers children.Returns the parentTreeNodeof the receiver.booleanisLeaf()Returns true if the receiver is a leaf.voidremoveEmptyServices will remove services which dont contain any service instances
-
Constructor Details
-
PServicesData
PServicesData This is the constructor for PServicesData. This will create a new root datastructure with a single instance of account level service type- Parameters:
sharingType- StringserviceParentPoid- Poid
-
-
Method Details
-
clear
public void clear()clear will reinitialize the data -
getAccountLevelServiceType
getAccountLevelServiceType This returns the account level service type present inPServicesData- Returns:
- PServiceType
-
addServiceType
addServiceType will add aPServiceTypedatastructure toPservicesData- Parameters:
serviceType- PServiceType
-
getChildCount
public int getChildCount()getChildCount is a overridden method. This will return the count of the instances ofPServiceType- Specified by:
getChildCountin interfaceTreeNode- Returns:
- int
-
getAllowsChildren
public boolean getAllowsChildren()getAllowsChildren will return true if children are allowed- Specified by:
getAllowsChildrenin interfaceTreeNode- Returns:
- boolean
-
isLeaf
public boolean isLeaf()Returns true if the receiver is a leaf. -
children
Returns the children of the receiver as anEnumeration. -
getParent
Returns the parentTreeNodeof the receiver. -
getChildAt
Returns the childTreeNodeat indexchildIndex.- Specified by:
getChildAtin interfaceTreeNode- Parameters:
index- int- Returns:
- TreeNode
-
getIndex
Returns the index ofnodein the receivers children. If the receiver does not containnode, -1 will be returned. -
removeEmptyServices
public void removeEmptyServices()removeEmptyServices will remove services which dont contain any service instances
-