com.atlassian.jira.jql.validator
Class DefaultOperatorUsageValidator

java.lang.Object
  extended by com.atlassian.jira.jql.validator.DefaultOperatorUsageValidator
All Implemented Interfaces:
OperatorUsageValidator

public class DefaultOperatorUsageValidator
extends java.lang.Object
implements OperatorUsageValidator

Since:
v4.0

Constructor Summary
DefaultOperatorUsageValidator(JqlOperandResolver operandResolver, I18nHelper.BeanFactory factory)
           
 
Method Summary
 boolean check(com.opensymphony.user.User user, TerminalClause clause)
          Check the usage of the Operator and Operand that are held in the clause.
 MessageSet validate(com.opensymphony.user.User searcher, TerminalClause clause)
          Validate the usage of the Operator and Operand that are held in the clause.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultOperatorUsageValidator

public DefaultOperatorUsageValidator(JqlOperandResolver operandResolver,
                                     I18nHelper.BeanFactory factory)
Method Detail

check

public boolean check(com.opensymphony.user.User user,
                     TerminalClause clause)
Description copied from interface: OperatorUsageValidator
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.

Specified by:
check in interface OperatorUsageValidator
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.

validate

public MessageSet validate(com.opensymphony.user.User searcher,
                           TerminalClause clause)
Description copied from interface: OperatorUsageValidator
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.

Specified by:
validate in interface OperatorUsageValidator
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.


Copyright © 2002-2010 Atlassian. All Rights Reserved.