Package org.ametys.web.repository.page
Class PageQueryHelper
- java.lang.Object
-
- org.ametys.web.repository.page.PageQueryHelper
-
public final class PageQueryHelper extends Object
Helper for creating JCR XPath queries involving page predicate.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
PageQueryHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static String
_encode(String path)
static String
getPageXPathQuery(String site, String language, String path, Expression pageExpression, SortCriteria sortCriteria)
Creates the XPath query corresponding to specifiedExpression
.
-
-
-
Constructor Detail
-
PageQueryHelper
private PageQueryHelper()
-
-
Method Detail
-
getPageXPathQuery
public static String getPageXPathQuery(String site, String language, String path, Expression pageExpression, SortCriteria sortCriteria)
Creates the XPath query corresponding to specifiedExpression
.- Parameters:
site
- the site ornull
for all sites.language
- the sitemap language ornull
for all sitemap languages.path
- the page path to search into ornull
for no filtering.pageExpression
- the query predicates.sortCriteria
- the sort criteria.- Returns:
- the created XPath query.
-
-