com.atlassian.jira.jql.validator
Class DefaultValidatorRegistry
java.lang.Object
com.atlassian.jira.jql.validator.DefaultValidatorRegistry
- All Implemented Interfaces:
- ValidatorRegistry
public final class DefaultValidatorRegistry
- extends Object
- implements ValidatorRegistry
- Since:
- v4.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultValidatorRegistry
public DefaultValidatorRegistry(SearchHandlerManager manager,
WasClauseValidator wasClauseValidator,
ChangedClauseValidator changedClauseValidator)
getClauseValidator
public Collection<ClauseValidator> getClauseValidator(com.atlassian.crowd.embedded.api.User searcher,
TerminalClause clause)
- Description copied from interface:
ValidatorRegistry
- 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.
- Specified by:
getClauseValidator
in interface ValidatorRegistry
- 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
public Collection<ClauseValidator> getClauseValidator(com.atlassian.crowd.embedded.api.User searcher,
WasClause clause)
- Description copied from interface:
ValidatorRegistry
- 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.
- Specified by:
getClauseValidator
in interface ValidatorRegistry
- 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
public ChangedClauseValidator getClauseValidator(com.atlassian.crowd.embedded.api.User searcher,
ChangedClause clause)
- Description copied from interface:
ValidatorRegistry
- Fetches the associated ClauseValidators for the provided ChangedClause.
- Specified by:
getClauseValidator
in interface ValidatorRegistry
- 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-2013 Atlassian. All Rights Reserved.