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 anExpressiontesting the current workflow step of a content. This can be used only to search on the current step. To search on history steps, use theCurrentStepExpressioninstead 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWorkflowStepExpression.LogicalOperatorThe logical operator to use in xpath query- 
Nested classes/interfaces inherited from interface org.ametys.plugins.repository.query.expression.Expression
Expression.Operator 
 - 
 
- 
Field Summary
Fields Modifier and Type Field Description private WorkflowStepExpression.LogicalOperator_logicalOperatorprivate Expression.Operator_operatorprivate int[]_values 
- 
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. 
 - 
 
- 
- 
Field Detail
- 
_operator
private Expression.Operator _operator
 
- 
_values
private int[] _values
 
- 
_logicalOperator
private WorkflowStepExpression.LogicalOperator _logicalOperator
 
 - 
 
- 
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:ExpressionBuild the expression.- Specified by:
 buildin interfaceExpression- Returns:
 - The XPath view of the expression.
 
 
 - 
 
 -