com.atlassian.jira.bc
Interface ServiceResult

All Known Subinterfaces:
ServiceOutcome<T>
All Known Implementing Classes:
IssueService.CreateValidationResult, IssueService.DeleteValidationResult, IssueService.IssueResult, IssueService.IssueValidationResult, IssueService.TransitionValidationResult, IssueService.UpdateValidationResult, LabelService.AddLabelValidationResult, LabelService.LabelsResult, LabelService.LabelSuggestionResult, LabelService.LabelValidationResult, LabelService.SetLabelValidationResult, ProjectService.AbstractProjectResult, ProjectService.AbstractProjectValidationResult, ProjectService.CreateProjectResult, ProjectService.CreateProjectValidationResult, ProjectService.DeleteProjectResult, ProjectService.DeleteProjectValidationResult, ProjectService.GetProjectResult, ProjectService.UpdateProjectSchemesValidationResult, ProjectService.UpdateProjectValidationResult, ServiceOutcomeImpl, ServiceResultImpl, UserService.CreateUserValidationResult, UserService.DeleteUserValidationResult, VersionService.AbstractVersionResult, VersionService.ArchiveVersionValidationResult, VersionService.CreateVersionValidationResult, VersionService.ReleaseVersionValidationResult, VersionService.VersionResult, VersionService.VersionsResult, VoteService.VoteValidationResult

public interface ServiceResult

This interface defines a service method call result in JIRA that can contain human readable errors. New service methods should prefer the generic ServiceOutcome.

Since:
v4.0
See Also:
ServiceOutcome

Method Summary
 ErrorCollection getErrorCollection()
           
 boolean isValid()
           
 

Method Detail

isValid

boolean isValid()
Returns:
true if there are no errors, false otherwise.

getErrorCollection

ErrorCollection getErrorCollection()
Returns:
an ErrorCollection that contains any errors that may have happened as a result of the validations.


Copyright © 2002-2010 Atlassian. All Rights Reserved.