Class PageQuery

java.lang.Object
org.ametys.web.search.query.PageQuery
All Implemented Interfaces:
Query

public class PageQuery extends Object implements Query
Query testing the id of a page or its ancestor ids (enabling to search the subpages of a given one).
  • Field Details

  • Constructor Details

    • PageQuery

      public PageQuery(boolean withSubPages)
      Create a PageQuery which searches on the given page (and optionally its sub-pages).
      Parameters:
      withSubPages - true to search for sub-pages too.
    • PageQuery

      public PageQuery(String pageId, boolean withSubPages)
      Create a PageQuery which searches on the given page (and optionally its sub-pages).
      Parameters:
      pageId - the page id.
      withSubPages - true to search for sub-pages of the given page id too.
  • Method Details