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

Searching for Link Target Attributes within Hierarchy Manager


To search on an attribute of a link target within Hierarchy Manager, search capability must be configured in the XML configuration files, and the link target object must implement IOMFSearchable interface. Once the attributes are set for search, you can use the following methods to find objects based on their attribute values.

IServiceAgreementManager saManager =
IOFMService.getOMFManagerByName(ServiceAgreementManager.getClassName());
ISearchCriteria criteria = saManager.getSearchCriteria();
criteria.add(criteria.equals("subscriberName", "John Willson" )).add( criteria.isNull( "extAttr1"));
IHierarchyNode foundNodes = rootNode.findNodeByLinkTargetTypeAndCriteria(saManager.getType(),criteria);

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