public class DefaultPredicateOperandResolver extends Object implements PredicateOperandResolver
PredicateOperandResolver
Constructor and Description |
---|
DefaultPredicateOperandResolver(PredicateOperandHandlerRegistry handlerRegistry) |
Modifier and Type | Method and Description |
---|---|
List<QueryLiteral> |
getValues(ApplicationUser searcher,
String field,
Operand operand) |
boolean |
isEmptyOperand(ApplicationUser searcher,
String field,
Operand operand)
Returns true if the operand represents an EMPTY operand.
|
boolean |
isFunctionOperand(ApplicationUser searcher,
String field,
Operand operand)
Returns true if the passed operand is a function call.
|
boolean |
isListOperand(ApplicationUser searcher,
String field,
Operand operand)
Returns true if the passed operand returns a list of values.
|
public DefaultPredicateOperandResolver(PredicateOperandHandlerRegistry handlerRegistry)
public List<QueryLiteral> getValues(ApplicationUser searcher, String field, Operand operand)
getValues
in interface PredicateOperandResolver
searcher
- the User
performing the lookupfield
- a String representing the field over which you are searchingoperand
- the Operand containing the values used to searchpublic boolean isEmptyOperand(ApplicationUser searcher, String field, Operand operand)
PredicateOperandResolver
isEmptyOperand
in interface PredicateOperandResolver
operand
- the operand to check if it is a EMPTY operandpublic boolean isFunctionOperand(ApplicationUser searcher, String field, Operand operand)
PredicateOperandResolver
isFunctionOperand
in interface PredicateOperandResolver
operand
- the operand to check. Cannot be null.public boolean isListOperand(ApplicationUser searcher, String field, Operand operand)
PredicateOperandResolver
isListOperand
in interface PredicateOperandResolver
operand
- the operand to check. Cannot be null.Copyright © 2002-2017 Atlassian. All Rights Reserved.