public final class ContentQueryHelper extends Object
//element(*, ametys:content)[<content predicate>]
Modifier | Constructor and Description |
---|---|
private |
ContentQueryHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
getContentXPathQuery(Expression contentExpression)
Creates the XPath query corresponding to specified
Expression . |
static String |
getContentXPathQuery(Expression contentExpression,
SortCriteria sortCriteria)
Creates the XPath query corresponding to specified
Expression . |
static String |
getWorkflowXPathQuery(Expression workflowExpression,
Expression contentExpression)
Creates the XPath query joining criteria on workflow and criteria on content's metadata.
|
private ContentQueryHelper()
public static String getContentXPathQuery(Expression contentExpression)
Expression
.contentExpression
- the query predicatespublic static String getContentXPathQuery(Expression contentExpression, SortCriteria sortCriteria)
Expression
.contentExpression
- the query predicatessortCriteria
- criteria for sorting resultspublic static String getWorkflowXPathQuery(Expression workflowExpression, Expression contentExpression)
workflowExpression
- the workflow query predicatescontentExpression
- the content query predicates