Package org.ametys.web.search.query
Class SiteQuery
java.lang.Object
org.ametys.web.search.query.SiteQuery
- All Implemented Interfaces:
Query
Represents a
Query
testing the site 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 SiteQuery to test if the site property existsBuild a SiteQuery to test if the site property is equals to one of the given site namesSiteQuery
(Collection<String> names) Build a SiteQuery to test if the site property is equals to one of the given site namesSiteQuery
(Query.Operator operator, String... names) Build a SiteQuery to test if the site property is equals or different to one of the given site namesSiteQuery
(Query.Operator operator, Collection<String> names) Build a SiteQuery. -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.cms.search.query.Query
buildAsJson, rewrite, toString
-
Constructor Details
-
SiteQuery
public SiteQuery()Build a SiteQuery to test if the site property exists -
SiteQuery
Build a SiteQuery to test if the site property is equals to one of the given site names- Parameters:
names
- the site names.
-
SiteQuery
Build a SiteQuery to test if the site property is equals to one of the given site names- Parameters:
names
- the site names.
-
SiteQuery
Build a SiteQuery to test if the site property is equals or different to one of the given site names- Parameters:
operator
- the operator (equals ot not-equals)names
- the site names.
-
SiteQuery
Build a SiteQuery.- Parameters:
operator
- the operator.names
- the site names.
-
-
Method Details
-
getOperator
Get the operator.- Returns:
- the operator
-
getNames
Get the site names.- Returns:
- the site names.
-
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.
-
hashCode
-
equals
-