Package org.ametys.web.search.query
Class SiteTypeQuery
java.lang.Object
org.ametys.web.search.query.SiteTypeQuery
- All Implemented Interfaces:
Query
Represents a
Query
testing the site type property.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.cms.search.query.Query
Query.LogicalOperator, Query.Operator
-
Constructor Summary
ConstructorDescriptionBuild a SiteTypeQuery to test if the site type property existsSiteTypeQuery
(String... types) Build a SiteTypeQuery to test if the site type property is equals to one of the given site typeSiteTypeQuery
(Collection<String> types) Build a SiteTypeQuery to test if the site type property is equals to one of the given site typesSiteTypeQuery
(Query.Operator operator, String... types) Build a SiteTypeQuery to test if the site type property is equals or different to one of the given site typesSiteTypeQuery
(Query.Operator operator, Collection<String> types) Build a SiteTypeQuery. -
Method Summary
-
Constructor Details
-
SiteTypeQuery
public SiteTypeQuery()Build a SiteTypeQuery to test if the site type property exists -
SiteTypeQuery
Build a SiteTypeQuery to test if the site type property is equals to one of the given site type- Parameters:
types
- the site type.
-
SiteTypeQuery
Build a SiteTypeQuery to test if the site type property is equals to one of the given site types- Parameters:
types
- the site types.
-
SiteTypeQuery
Build a SiteTypeQuery to test if the site type property is equals or different to one of the given site types- Parameters:
operator
- the operator (equals ot not-equals)types
- the site types.
-
SiteTypeQuery
Build a SiteTypeQuery.- Parameters:
operator
- the operator.types
- the site types.
-
-
Method Details
-
getOperator
Get the operator.- Returns:
- the operator
-
getTypes
Get the site types.- Returns:
- the site types.
-
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
-