Hierarchy Developer's Guide for Oracle Self-Service E-Billing > Basic Hierarchy Manager Use Cases > Taking the User's Role into Consideration >

Finding a List of Hierarchies That a User Can Access


The following code retrieves a list of hierarchies based on the user type:

IHierarchy[ ] hierarchies = haMgr.getHierarchies(hierarchyType);

Depending on the user role set in the current context, the method returns the following if the user is:

  • Subscriber or Manager. A list of hierarchies that the subscriber has been given access explicitly to some nodes in the tree.
  • System Administrator. All hierarchies that belong to the company of the user.
Hierarchy Developer's Guide for Oracle Self-Service E-Billing Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.