Class CollectionsQuery
- java.lang.Object
-
- org.ametys.plugins.contentio.synchronize.search.query.CollectionsQuery
-
- All Implemented Interfaces:
Query
public class CollectionsQuery extends Object implements Query
Query
testingSynchronizableContentsCollection
s of contents.
-
-
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>
_collectionIds
private Query.Operator
_operator
-
Constructor Summary
Constructors Constructor Description CollectionsQuery(String... ids)
Build a CollectionsQuery.CollectionsQuery(Collection<String> ids)
Build a CollectionsQuery.CollectionsQuery(Query.Operator operator, String... ids)
Build a CollectionsQuery.CollectionsQuery(Query.Operator operator, Collection<String> ids)
Build a CollectionsQuery.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
build()
Build the solr query string representing the Query object.
-
-
-
Field Detail
-
_operator
private Query.Operator _operator
-
_collectionIds
private List<String> _collectionIds
-
-
Constructor Detail
-
CollectionsQuery
public CollectionsQuery(String... ids)
Build a CollectionsQuery.- Parameters:
ids
- The ids of theSynchronizableContentsCollection
s to test
-
CollectionsQuery
public CollectionsQuery(Collection<String> ids)
Build a CollectionsQuery.- Parameters:
ids
- The ids of theSynchronizableContentsCollection
s to test
-
CollectionsQuery
public CollectionsQuery(Query.Operator operator, String... ids)
Build a CollectionsQuery.- Parameters:
operator
- The query operator (can be EQ or NE).ids
- The ids of theSynchronizableContentsCollection
s to test
-
CollectionsQuery
public CollectionsQuery(Query.Operator operator, Collection<String> ids)
Build a CollectionsQuery.- Parameters:
operator
- The query operator (can be EQ or NE).ids
- The ids of theSynchronizableContentsCollection
s to test
-
-
Method Detail
-
build
public String build() throws QuerySyntaxException
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.
-
-