com.atlassian.jira.jql.permission
Class DefaultOperandSanitisingVisitor

java.lang.Object
  extended by 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:

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

Since:
v4.0

Constructor Summary
DefaultOperandSanitisingVisitor(JqlOperandResolver jqlOperandResolver, User searcher)
           
 
Method Summary
 Operand visit(EmptyOperand empty)
          The method called when visiting an EmptyOperand.
 Operand visit(FunctionOperand function)
          The method called when visiting a FunctionOperand.
 Operand visit(MultiValueOperand originalMulti)
          The method called when visiting an MultiValueOperand.
 Operand visit(SingleValueOperand singleValueOperand)
          The method called when visiting an SingleValueOperand.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultOperandSanitisingVisitor

public DefaultOperandSanitisingVisitor(JqlOperandResolver jqlOperandResolver,
                                       User searcher)
Method Detail

visit

public Operand visit(EmptyOperand empty)
Description copied from interface: OperandVisitor
The method called when visiting an EmptyOperand.

Specified by:
visit in interface OperandVisitor<Operand>
Parameters:
empty - the operand being visited.
Returns:
the value to return from the operand visit.

visit

public Operand visit(FunctionOperand function)
Description copied from interface: OperandVisitor
The method called when visiting a FunctionOperand.

Specified by:
visit in interface OperandVisitor<Operand>
Parameters:
function - the operand being visited.
Returns:
the value to return from the operand visit.

visit

public Operand visit(MultiValueOperand originalMulti)
Description copied from interface: OperandVisitor
The method called when visiting an MultiValueOperand.

Specified by:
visit in interface OperandVisitor<Operand>
Parameters:
originalMulti - the operand being visited.
Returns:
the value to return from the operand visit.

visit

public Operand visit(SingleValueOperand singleValueOperand)
Description copied from interface: OperandVisitor
The method called when visiting an SingleValueOperand.

Specified by:
visit in interface OperandVisitor<Operand>
Parameters:
singleValueOperand - the operand being visited.
Returns:
the value to return from the operand visit.


Copyright © 2002-2010 Atlassian. All Rights Reserved.