Class CatalogSearchCriteria
- All Implemented Interfaces:
Serializable
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
static enum
-
Constructor Summary
ConstructorsConstructorDescriptionCatalogSearchCriteria
(Object leftOperand, Object rightOperand, CatalogSearchCriteria.Operator op) -
Method Summary
-
Constructor Details
-
CatalogSearchCriteria
public CatalogSearchCriteria(Object leftOperand, Object rightOperand, CatalogSearchCriteria.Operator op)
-
-
Method Details