public class DefaultOperatorUsageValidator extends Object implements OperatorUsageValidator
Constructor and Description |
---|
DefaultOperatorUsageValidator(JqlOperandResolver operandResolver,
I18nHelper.BeanFactory factory) |
Modifier and Type | Method and Description |
---|---|
boolean |
check(ApplicationUser user,
TerminalClause clause)
Check the usage of the Operator and Operand that are held in the clause.
|
MessageSet |
validate(ApplicationUser searcher,
TerminalClause clause)
Validate the usage of the Operator and Operand that are held in the clause.
|
public DefaultOperatorUsageValidator(JqlOperandResolver operandResolver, I18nHelper.BeanFactory factory)
public boolean check(ApplicationUser user, TerminalClause clause)
OperatorUsageValidator
check
in interface OperatorUsageValidator
user
- the user performing the validation, used to get i18n information.clause
- the clause that contains the Operator and Operand.public MessageSet validate(ApplicationUser searcher, TerminalClause clause)
OperatorUsageValidator
validate
in interface OperatorUsageValidator
searcher
- the user performing the validation, used to get i18n information.clause
- the clause that contains the Operator and Operand.Copyright © 2002-2017 Atlassian. All Rights Reserved.