Class DefaultOperandSanitisingVisitor

java.lang.Object
com.atlassian.jira.jql.permission.DefaultOperandSanitisingVisitor
All Implemented Interfaces:
OperandVisitor<Operand>

public class DefaultOperandSanitisingVisitor extends Object implements OperandVisitor<Operand>

The default strategy for sanitising an arbitrary Operand is:

  • EmptyOperands do not need sanitising;
  • FunctionOperands have their arguments sanitised by JqlOperandResolver;
  • MultiValueOperands must have their children sanitised and potentially recombined into a new MultiValueOperand instance.
  • SingleValueOperands should be sanitised depending on the context (what field's values we are dealing with). But we don't know about that here, so we just return the operand back.

In general, if no sanitisation is required, the input Operand should be returned.

Since:
v4.0