Class ProjectQuery
- java.lang.Object
-
- org.ametys.plugins.workspaces.search.query.ProjectQuery
-
- All Implemented Interfaces:
Query
public class ProjectQuery extends Object implements Query
Represents aQuerytesting 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 Modifier and Type Field Description private List<String>_idsprivate Query.Operator_operator
-
Constructor Summary
Constructors Constructor Description ProjectQuery()Build 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringbuild()Build the solr query string representing the Query object.
-
-
-
Field Detail
-
_operator
private Query.Operator _operator
-
-
Constructor Detail
-
ProjectQuery
public ProjectQuery()
Build a ProjectQuery to test if the project property exits
-
ProjectQuery
public ProjectQuery(String... ids)
Build a ProjectQuery to test if the project property is equal to one of the given project ids- Parameters:
ids- the project ids.
-
ProjectQuery
public ProjectQuery(Collection<String> ids)
Build a ProjectQuery to test if the project property is equal to one of the given project ids- Parameters:
ids- the project ids.
-
ProjectQuery
public ProjectQuery(Query.Operator operator, String... ids)
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
public ProjectQuery(Query.Operator operator, Collection<String> ids)
Build a ProjectQuery.- Parameters:
operator- the operator.ids- the project ids.
-
-
Method Detail
-
build
public String build() throws QuerySyntaxException
Description copied from interface:QueryBuild the solr query string representing the Query object.- Specified by:
buildin interfaceQuery- Returns:
- the solr query string representing the Query object.
- Throws:
QuerySyntaxException- if the query can't be built because of a syntax error.
-
-