Hierarchy Developer's Guide for Oracle Billing Insight > Basic Hierarchy Manager Use Cases > Searching and Filtering Hierarchies >

Searching Nodes within a Hierarchy


You can search for hierarchy nodes across all hierarchies to which you have access, within a single hierarchy, or within a subtree of a hierarchy. Based on the type of search, you can use methods defined in IHierarchyManager, IHierarchy, or IHierarchyNode to conduct your search.

Code Example: Finding a Root Node for User within a Hierarchy

The following code shows an example of finding a root node for a user within a hierarchy:

IHierarchyNode[] IHierarchy.findRootNodeForUser(IUser)
IHierarchyNode[] IHierarchy.findRootNodeForUser(String uid)
IHierarchyNode[] IHierarchy.findRootNodeForUser2(String userID)
IHierarchyNode[] IHierarchy.findRootNodes2(IUser user) throws DataStoreException

Code Example: Find Node within a Hierarchy, or a Section of Hierarchy

The following code shows an example of finding a node within a hierarchy, or a section of hierarchy

    • By Link Target URI:

    IHierarchyNode[ ] findNodeByLinkTargetURI(String linkTargetURI)
    IHierarchyNode[ ] findNodeByLinkTargetURI(String URI, IPeriod period)

    • By Link Target Type:

    findNodeByLinkTargetType(String linkTargetType)

    • By Link Target Id:

    findNodeByLinkTargetId(string linkTargetId)

Hierarchy Developer's Guide for Oracle Billing Insight Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices.