Class ProjectQuery
java.lang.Object
org.ametys.plugins.workspaces.search.query.ProjectQuery
- All Implemented Interfaces:
Query
Represents a
Query
testing the project property.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.cms.search.query.Query
Query.LogicalOperator, Query.Operator
-
Field Summary
Fields inherited from interface org.ametys.cms.search.query.Query
BOOL_FILTER, BOOL_MUST, BOOL_MUST_NOT, BOOL_SHOULD
-
Constructor Summary
ConstructorDescriptionBuild a ProjectQuery to test if the project property exitsProjectQuery
(String... ids) Build a ProjectQuery to test if the project property is equal to one of the given project idsProjectQuery
(Collection<String> ids) Build a ProjectQuery to test if the project property is equal to one of the given project idsProjectQuery
(Query.Operator operator, String... ids) Build a ProjectQuery to test if the project property is equal or different to one of the given project idsProjectQuery
(Query.Operator operator, Collection<String> ids) Build a ProjectQuery. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.cms.search.query.Query
buildAsJson, rewrite, toString
-
Constructor Details
-
ProjectQuery
public ProjectQuery()Build a ProjectQuery to test if the project property exits -
ProjectQuery
Build a ProjectQuery to test if the project property is equal to one of the given project ids- Parameters:
ids
- the project ids.
-
ProjectQuery
Build a ProjectQuery to test if the project property is equal to one of the given project ids- Parameters:
ids
- the project ids.
-
ProjectQuery
Build a ProjectQuery to test if the project property is equal or different to one of the given project ids- Parameters:
operator
- the operator (equal ot not-equal)ids
- the project ids.
-
ProjectQuery
Build a ProjectQuery.- Parameters:
operator
- the operator.ids
- the project ids.
-
-
Method Details
-
build
Description copied from interface:Query
Build the solr query string representing the Query object.- Specified by:
build
in interfaceQuery
- Returns:
- the solr query string representing the Query object.
- Throws:
QuerySyntaxException
- if the query can't be built because of a syntax error.
-