Package org.ametys.cms.repository
Class WorkflowStepExpression
java.lang.Object
org.ametys.cms.repository.WorkflowStepExpression
- All Implemented Interfaces:
Expression
Constructs an
Expression
testing the current workflow step of a content.
This can be used only to search on the current step. To search on history steps, use the CurrentStepExpression
instead-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.plugins.repository.query.expression.Expression
Expression.LogicalOperator, Expression.Operator
-
Constructor Summary
ConstructorDescriptionWorkflowStepExpression
(Expression.Operator operator, int value) Creates the expression.WorkflowStepExpression
(Expression.Operator operator, int[] values, Expression.LogicalOperator logicalOperator) Creates the expression. -
Method Summary
-
Constructor Details
-
WorkflowStepExpression
Creates the expression.- Parameters:
operator
- the operator to make the comparison (only Operator.EQ and Operator.NE allowed)value
- the step value
-
WorkflowStepExpression
public WorkflowStepExpression(Expression.Operator operator, int[] values, Expression.LogicalOperator logicalOperator) Creates the expression.- Parameters:
operator
- the operator to make the comparison (only Operator.EQ and Operator.NE allowed)values
- the tags value in a arraylogicalOperator
- the logical operator to use for given value
-
-
Method Details
-
build
Description copied from interface:Expression
Build the expression.- Specified by:
build
in interfaceExpression
- Returns:
- The XPath view of the expression.
-