Package org.ametys.web.repository.page
Class PageQueryHelper
java.lang.Object
org.ametys.web.repository.page.PageQueryHelper
Helper for creating JCR XPath queries involving page predicate.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetPageXPathQuery(String site, String language, String path, Expression pageExpression, SortCriteria sortCriteria) Creates the XPath query corresponding to specifiedExpression.
-
Method Details
-
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 ornullfor all sites.language- the sitemap language ornullfor all sitemap languages.path- the page path to search into ornullfor no filtering.pageExpression- the query predicates.sortCriteria- the sort criteria.- Returns:
- the created XPath query.
-