public class

DefaultOperatorUsageValidator

extends Object
implements OperatorUsageValidator
java.lang.Object
   ↳ com.atlassian.jira.jql.validator.DefaultOperatorUsageValidator

Summary

Public Constructors
DefaultOperatorUsageValidator(JqlOperandResolver operandResolver, I18nHelper.BeanFactory factory)
Public Methods
boolean check(User user, TerminalClause clause)
Check the usage of the Operator and Operand that are held in the clause.
MessageSet validate(User searcher, TerminalClause clause)
Validate the usage of the Operator and Operand that are held in the clause.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.jql.validator.OperatorUsageValidator

Public Constructors

public DefaultOperatorUsageValidator (JqlOperandResolver operandResolver, I18nHelper.BeanFactory factory)

Public Methods

public boolean check (User user, TerminalClause clause)

Check the usage of the Operator and Operand that are held in the clause. The clause specific validation, as to whether the clause has any specific issues with the configuration occurs elsewhere. This is just performing global Operator/Operand checks.

Parameters
user the user performing the validation, used to get i18n information.
clause the clause that contains the Operator and Operand.
Returns
  • true if the passed clause is valid, false otherwise.

public MessageSet validate (User searcher, TerminalClause clause)

Validate the usage of the Operator and Operand that are held in the clause. The clause specific validation, as to whether the clause has any specific issues with the configuration occurs elsewhere. This is just performing global Operator/Operand checks.

Parameters
searcher the user performing the validation, used to get i18n information.
clause the clause that contains the Operator and Operand.
Returns
  • a MessageSet that will contain any errors or warnings that may have been generated from the validation.