Package org.ametys.cms.search.query
Class ContentIdQuery
java.lang.Object
org.ametys.cms.search.query.AbstractOperatorQuery<List<T>>
org.ametys.cms.search.query.AbstractMultivaluedQuery<String>
org.ametys.cms.search.query.ContentIdQuery
Represents a
Query testing the current id of a content.
It can only be used to search on the content id.-
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
ConstructorsConstructorDescriptionContentIdQuery(String value) Build a ContentIdQuery.ContentIdQuery(String... values) Build a ContentIdQuery.ContentIdQuery(Query.Operator operator, String value) Build a ContentIdQuery.ContentIdQuery(Query.Operator operator, String... values) Build a ContentIdQuery.ContentIdQuery(Query.Operator operator, Query.LogicalOperator logicalOperator, String... values) Build a ContentIdQuery. -
Method Summary
Methods inherited from class org.ametys.cms.search.query.AbstractMultivaluedQuery
build, buildAsJson, equals, hashCode, singleValueForQueryMethods inherited from class org.ametys.cms.search.query.AbstractOperatorQuery
getFieldName, getOperator, getValue, rewrite, valueForQuery
-
Constructor Details
-
ContentIdQuery
Build a ContentIdQuery.- Parameters:
value- the content id to test.
-
ContentIdQuery
Build a ContentIdQuery.- Parameters:
values- the content ids to test.
-
ContentIdQuery
Build a ContentIdQuery.- Parameters:
operator- the operator.value- the content id to test.
-
ContentIdQuery
Build a ContentIdQuery.- Parameters:
operator- the operator.values- the content ids to test.
-
ContentIdQuery
public ContentIdQuery(Query.Operator operator, Query.LogicalOperator logicalOperator, String... values) Build a ContentIdQuery.- Parameters:
operator- the operator.logicalOperator- the logical operator.values- the content ids to test.
-