Class CatalogSearchCriteria

java.lang.Object
oracle.iam.catalog.vo.CatalogSearchCriteria
All Implemented Interfaces:
Serializable

public class CatalogSearchCriteria extends Object implements Serializable
This object can be used to create search object for cataog search. TAGS has to be part of SearchCriteria. API will not give you serach result if TAGS is not a part of catalog search criteria.

It takes three parameter to create a CatalogSearchCriteria object. First parameter being an attribute value on which you intend to search on, It could be either TAGS or CATEGORY. Second argument is value using which you want to perform search. Third parameter is the operator

Way to create SearchCriteria object is

CatalogSearchCriteria criteria = new CatalogSearchCriteria(Argument.TAG, "Marketing FINANACE", Operator.EQUAL);

In the above example: CatalogSearchCriteria criteria = new CatalogSearchCriteria(Argument.TAG, "Marketing FINANACE", Operator.EQUAL); User wants to search all the catalog items with tag as Marketing and FINANACE.

To create more complex SearchCriteria object, say for example while refining search

 
 CatalogSearchCriteria criteria = new CatalogSearchCriteria(Argument.TAG, "Marketing FINANACE", Operator.EQUAL);
 CatalogSearchCriteria criteria1 = new CatalogSearchCriteria(Argument.CATEGORY, "Finance,ADServer", Operator.EQUAL);
 CatalogSearchCriteria criteria2 = new CatalogSearchCriteria(criteria, criteria1, Operator.AND);
 
 

In the above example user wants to search with tag as Marketing and FINANACE. Category he has selected as Finance,ADServer. For category the point to note is, if user wants to have more than one category then values should be Comma(,) separated.

Since:
11.1.2.0.0
Author:
asbharga
See Also: