Bookshelf Home | Contents | Index | PDF | ![]() ![]() |
Hierarchy Developer's Guide for Oracle Self-Service E-Billing > Basic Hierarchy Manager Use Cases > Taking the User's Role into Consideration > Creating HierarchiesThe following code shows an example of creating hierarchies: IHierarchyContext hierarchyContext = new HierarchyContext(); //hierarchyContext can be set through web appflow layer hierarchyContext.setUser(user); hierarchyContext.setSubject(subject); LookupService lookup = LookupServiceFactory.getInstance(); IHierarchyService hierarchyServices = (IHierarchyService)lookup.getModule("hierarchy"); IHierarchyAccessManager haMgr = hierarchyServices.createHierarchyAccessManager(hierarchyContext); haMgr.createHierarchy (hierarchyname, hierarchy_type, hierarchyDesc); Use IHierarchyAccessManager to create a hierarchy, based on the current user or subject information stored in the HierarchyContext. Note that the method acts differently depending on the user role:
|
![]() |
![]() ![]() |
Hierarchy Developer's Guide for Oracle Self-Service E-Billing | Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |