Skip navigation links
oracle.iam.catalog.vo
Class CatalogSearchCriteria
java.lang.Object
oracle.iam.catalog.vo.CatalogSearchCriteria
- All Implemented Interfaces:
- java.io.Serializable
-
public class CatalogSearchCriteria
- extends java.lang.Object
- implements java.io.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
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CatalogSearchCriteria
public CatalogSearchCriteria(java.lang.Object leftOperand,
java.lang.Object rightOperand,
CatalogSearchCriteria.Operator op)
getOperator
public CatalogSearchCriteria.Operator getOperator()
getFirstArgument
public java.lang.Object getFirstArgument()
getSecondArgument
public java.lang.Object getSecondArgument()
toString
public java.lang.String toString()
-
- Overrides:
toString
in class java.lang.Object
Skip navigation links
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.