Hierarchy Developer's Guide for Oracle Self-Service E-Billing > Extending Advanced Hierarchy Manager Use Cases > Making OMF Objects Work with Hierarchy Manager >

Making New OMF Objects Searchable in Hierarchy Manager


Using XML configuration you can specify which attributes to use as part of search criteria for a given business object. Based on those attributes, you can construct flexible search criteria to conduct different searches. If the related information is spread out among several java classes, the searchable attributes can be specified through object references. For a predefined business object, you can add or remove searchable attributes through XML configuration as well.

The following topics list the steps required to support search capability for your OMF object.

Defining Search Criteria

First, define where the search starts when you search for an attribute. Typically, the search starts at a top-level class, for example, search service number on service agreement object. The following code shows an example of how to enable support search criteria for a service agreement object:

<bean id="serviceAgreementSearchCriteria"
class="com.edocs.common.omf.search.SearchCriteriaSupport"
singleton="false">
<property name="searchMetaData">
<ref local="serviceAgreementSearchMeta"/>
</property>
</bean>

When a class is subordinate, the search for the specified bean class is always done through its parent class. For example, if you would like to search for a user's address, which is stored in the UserProfile class, the search criteria support is specified on the User class, not on the UserProfile class.

Hierarchy Developer's Guide for Oracle Self-Service E-Billing Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.