Class 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).
    • Constructor Detail

      • 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.