com.atlassian.jira.jql.validator
Interface ValidatorRegistry

All Known Implementing Classes:
DefaultValidatorRegistry

public interface ValidatorRegistry

Resolves the validators for a provided TerminalClause.

Since:
v4.0

Method Summary
 ChangedClauseValidator getClauseValidator(com.atlassian.crowd.embedded.api.User searcher, ChangedClause clause)
          Fetches the associated ClauseValidators for the provided ChangedClause.
 Collection<ClauseValidator> getClauseValidator(com.atlassian.crowd.embedded.api.User searcher, TerminalClause clause)
          Fetches the associated ClauseValidators for the provided TerminalClause.
 Collection<ClauseValidator> getClauseValidator(com.atlassian.crowd.embedded.api.User searcher, WasClause clause)
          Fetches the associated ClauseValidators for the provided WasClause.
 

Method Detail

getClauseValidator

Collection<ClauseValidator> getClauseValidator(com.atlassian.crowd.embedded.api.User searcher,
                                               TerminalClause clause)
Fetches the associated ClauseValidators for the provided TerminalClause. The returned value is based on the clause's name and the Operator that is associated with the provided clause. Multiple values may be returned for custom fields.

Parameters:
searcher - the user who is performing the search.
clause - that defines the name and operator for which we want to find a clause validator, must not be null.
Returns:
the validators associated with this clause, or empty list if the lookup failed.

getClauseValidator

Collection<ClauseValidator> getClauseValidator(com.atlassian.crowd.embedded.api.User searcher,
                                               WasClause clause)
Fetches the associated ClauseValidators for the provided WasClause. The returned value is based on the clause's name and the Operator that is associated with the provided clause. Multiple values may be returned for custom fields.

Parameters:
searcher - the user who is performing the search.
clause - that defines the name and operator for which we want to find a clause validator, must not be null.
Returns:
the validators associated with this clause, or empty list if the lookup failed.

getClauseValidator

ChangedClauseValidator getClauseValidator(com.atlassian.crowd.embedded.api.User searcher,
                                          ChangedClause clause)
Fetches the associated ClauseValidators for the provided ChangedClause.

Parameters:
searcher - the user who is performing the search.
clause - that defines the field
Returns:
the validators associated with this clause, or empty list if the lookup failed.


Copyright © 2002-2014 Atlassian. All Rights Reserved.