|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.jql.permission.DefaultOperandSanitisingVisitor
public class DefaultOperandSanitisingVisitor
The default strategy for sanitising an arbitrary Operand
is:
EmptyOperand
s do not need sanitising;
FunctionOperand
s have their arguments sanitised by JqlOperandResolver
;
MultiValueOperand
s must have their children sanitised and potentially recombined
into a new MultiValueOperand instance.
SingleValueOperand
s 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.
Constructor Summary | |
---|---|
DefaultOperandSanitisingVisitor(JqlOperandResolver jqlOperandResolver,
com.atlassian.crowd.embedded.api.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 |
---|
public DefaultOperandSanitisingVisitor(JqlOperandResolver jqlOperandResolver, com.atlassian.crowd.embedded.api.User searcher)
Method Detail |
---|
public Operand visit(EmptyOperand empty)
OperandVisitor
EmptyOperand
.
visit
in interface OperandVisitor<Operand>
empty
- the operand being visited.
public Operand visit(FunctionOperand function)
OperandVisitor
FunctionOperand
.
visit
in interface OperandVisitor<Operand>
function
- the operand being visited.
public Operand visit(MultiValueOperand originalMulti)
OperandVisitor
MultiValueOperand
.
visit
in interface OperandVisitor<Operand>
originalMulti
- the operand being visited.
public Operand visit(SingleValueOperand singleValueOperand)
OperandVisitor
SingleValueOperand
.
visit
in interface OperandVisitor<Operand>
singleValueOperand
- the operand being visited.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |