Package org.ametys.web.search.query
Class DescendantPageQuery
- java.lang.Object
 - 
- org.ametys.web.search.query.DescendantPageQuery
 
 
- 
- All Implemented Interfaces:
 Query
public class DescendantPageQuery extends Object implements Query
Query testing if the Page is a descendant (i.e., child, child of a child, etc.) 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_ancestorPageIdThe id. 
- 
Constructor Summary
Constructors Constructor Description DescendantPageQuery(String ancestorPageId)Creates a DescendantPageQuery 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringbuild()Build the solr query string representing the Query object.booleanequals(Object obj)inthashCode() 
 - 
 
- 
- 
Field Detail
- 
_ancestorPageId
protected String _ancestorPageId
The id. 
 - 
 
- 
Constructor Detail
- 
DescendantPageQuery
public DescendantPageQuery(String ancestorPageId)
Creates a DescendantPageQuery- Parameters:
 ancestorPageId- The ancestor page id
 
 - 
 
- 
Method Detail
- 
build
public String build() throws QuerySyntaxException
Description copied from interface:QueryBuild the solr query string representing the Query object.- Specified by:
 buildin interfaceQuery- Returns:
 - the solr query string representing the Query object.
 - Throws:
 QuerySyntaxException- if the query can't be built because of a syntax error.
 
 - 
 
 -