Package org.ametys.cms.repository
Class WorkflowStepExpression
- java.lang.Object
-
- org.ametys.cms.repository.WorkflowStepExpression
-
- All Implemented Interfaces:
Expression
public class WorkflowStepExpression extends Object implements Expression
Constructs anExpression
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 theCurrentStepExpression
instead
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WorkflowStepExpression.LogicalOperator
The logical operator to use in xpath query-
Nested classes/interfaces inherited from interface org.ametys.plugins.repository.query.expression.Expression
Expression.Operator
-
-
Constructor Summary
Constructors Constructor Description WorkflowStepExpression(Expression.Operator operator, int value)
Creates the expression.WorkflowStepExpression(Expression.Operator operator, int[] values, WorkflowStepExpression.LogicalOperator logicalOperator)
Creates the expression.
-
-
-
Constructor Detail
-
WorkflowStepExpression
public WorkflowStepExpression(Expression.Operator operator, int value)
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, WorkflowStepExpression.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 Detail
-
build
public String build()
Description copied from interface:Expression
Build the expression.- Specified by:
build
in interfaceExpression
- Returns:
- The XPath view of the expression.
-
-