com.atlassian.jira.jql.validator
Interface ClauseValidator

All Known Implementing Classes:
AbstractUserValidator, AffectedVersionValidator, AllTextValidator, AssigneeValidator, AttachmentsClauseValidator, CascadingSelectCustomFieldValidator, CommentValidator, ComponentValidator, CreatedDateValidator, CreatorValidator, CurrentEstimateValidator, DateValidator, DescriptionValidator, DueDateValidator, EntityPropertyClauseValidator, EnvironmentValidator, ExactTextCustomFieldValidator, FixForVersionValidator, FreeTextFieldValidator, GroupCustomFieldValidator, IssueIdValidator, IssueParentValidator, IssuePropertyClauseValidator, IssueSecurityLevelClauseValidator, IssueTypeValidator, LabelsValidator, LastViewedDateValidator, LocalDateValidator, NumberCustomFieldValidator, OriginalEstimateValidator, PriorityValidator, ProjectCategoryValidator, ProjectValidator, ReporterValidator, ResolutionDateValidator, ResolutionValidator, SavedFilterClauseValidator, SelectCustomFieldValidator, StatusCategoryValidator, StatusValidator, SummaryValidator, TimeSpentValidator, UpdatedDateValidator, UserCustomFieldValidator, VersionCustomFieldValidator, VotesValidator, WasClauseValidator, WatchesValidator, WorkRatioValidator

public interface ClauseValidator

Validates a clause and adds human readable i18n'ed messages if there is a problem.

Since:
v4.0

Method Summary
 MessageSet validate(com.atlassian.crowd.embedded.api.User searcher, TerminalClause terminalClause)
          Validates a clause and adds human readable i18n'ed messages if there is a problem.
 

Method Detail

validate

@Nonnull
MessageSet validate(com.atlassian.crowd.embedded.api.User searcher,
                            @Nonnull
                            TerminalClause terminalClause)
Validates a clause and adds human readable i18n'ed messages if there is a problem.

Parameters:
searcher - the user who is executing the search.
terminalClause - the clause to validate.
Returns:
an MessageSet that will contain any messages relating to failed validation. An empty message set must be returned to indicate there were no errors. null can never be returned.


Copyright © 2002-2014 Atlassian. All Rights Reserved.