Class PageQueryHelper


  • public final class PageQueryHelper
    extends Object
    Helper for creating JCR XPath queries involving page predicate.
    • Method Detail

      • getPageXPathQuery

        public static String getPageXPathQuery​(String site,
                                               String language,
                                               String path,
                                               Expression pageExpression,
                                               SortCriteria sortCriteria)
        Creates the XPath query corresponding to specified Expression.
        Parameters:
        site - the site or null for all sites.
        language - the sitemap language or null for all sitemap languages.
        path - the page path to search into or null for no filtering.
        pageExpression - the query predicates.
        sortCriteria - the sort criteria.
        Returns:
        the created XPath query.