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 TypeMethodDescriptionvoid
addServiceType
(PServiceType serviceType) addServiceType will add aPServiceType
datastructure toPservicesData
children()
Returns the children of the receiver as anEnumeration
.void
clear()
clear will reinitialize the datagetAccountLevelServiceType This returns the account level service type present inPServicesData
boolean
getAllowsChildren will return true if children are allowedgetChildAt
(int index) Returns the childTreeNode
at indexchildIndex
.int
getChildCount is a overridden method.int
Returns the index ofnode
in the receivers children.Returns the parentTreeNode
of the receiver.boolean
isLeaf()
Returns true if the receiver is a leaf.void
removeEmptyServices 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 aPServiceType
datastructure toPservicesData
- Parameters:
serviceType
- PServiceType
-
getChildCount
public int getChildCount()getChildCount is a overridden method. This will return the count of the instances ofPServiceType
- Specified by:
getChildCount
in interfaceTreeNode
- Returns:
- int
-
getAllowsChildren
public boolean getAllowsChildren()getAllowsChildren will return true if children are allowed- Specified by:
getAllowsChildren
in 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 parentTreeNode
of the receiver. -
getChildAt
Returns the childTreeNode
at indexchildIndex
.- Specified by:
getChildAt
in interfaceTreeNode
- Parameters:
index
- int- Returns:
- TreeNode
-
getIndex
Returns the index ofnode
in 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
-