Package org.ametys.cms.search.query
Class ContentLanguageQuery
java.lang.Object
org.ametys.cms.search.query.AbstractOperatorQuery<List<T>>
org.ametys.cms.search.query.AbstractMultivaluedQuery<String>
org.ametys.cms.search.query.ContentLanguageQuery
Represents a
Query
testing the content language.-
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 ContentLanguageQuery to test if the contentLanguage property exists.ContentLanguageQuery
(String value) Build a ContentLanguageQuery.ContentLanguageQuery
(String... values) Build a ContentLanguageQuery.ContentLanguageQuery
(Query.Operator operator, String value) Build a ContentLanguageQuery.ContentLanguageQuery
(Query.Operator operator, String... values) Build a ContentLanguageQuery.ContentLanguageQuery
(Query.Operator operator, Query.LogicalOperator logicalOperator, String... values) Build a ContentLanguageQuery. -
Method Summary
Methods inherited from class org.ametys.cms.search.query.AbstractMultivaluedQuery
build, buildAsJson, equals, hashCode, singleValueForQuery
Methods inherited from class org.ametys.cms.search.query.AbstractOperatorQuery
getFieldName, getOperator, getValue, rewrite, valueForQuery
-
Constructor Details
-
ContentLanguageQuery
public ContentLanguageQuery()Build a ContentLanguageQuery to test if the contentLanguage property exists. -
ContentLanguageQuery
Build a ContentLanguageQuery.- Parameters:
value
- the language equality to test.
-
ContentLanguageQuery
Build a ContentLanguageQuery.- Parameters:
values
- the languages to test.
-
ContentLanguageQuery
Build a ContentLanguageQuery.- Parameters:
operator
- the operator.value
- the language code.
-
ContentLanguageQuery
Build a ContentLanguageQuery.- Parameters:
operator
- the operator.values
- the language codes.
-
ContentLanguageQuery
public ContentLanguageQuery(Query.Operator operator, Query.LogicalOperator logicalOperator, String... values) Build a ContentLanguageQuery.- Parameters:
operator
- the operator.logicalOperator
- the logical operator.values
- the language codes.
-