Package org.ametys.web.search.query
Class ChildPageQuery
- java.lang.Object
-
- org.ametys.web.search.query.ChildPageQuery
-
- All Implemented Interfaces:
Query
public class ChildPageQuery extends Object implements Query
Query testing if the Page is a direct child of another given one.
-
-
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 protected String
_parentPageId
The id.
-
Constructor Summary
Constructors Constructor Description ChildPageQuery(String parentPageId)
Creates a ChildPageQuery
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
build()
Build the solr query string representing the Query object.boolean
equals(Object obj)
int
hashCode()
-
-
-
Field Detail
-
_parentPageId
protected String _parentPageId
The id.
-
-
Constructor Detail
-
ChildPageQuery
public ChildPageQuery(String parentPageId)
Creates a ChildPageQuery- Parameters:
parentPageId
- The parent page id
-
-
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.
-
-