com.atlassian.jira.bc
Interface ServiceResult

All Known Subinterfaces:
ServiceOutcome<T>
All Known Implementing Classes:
AdhocNotificationService.ValidateNotificationResult, DataImportService.ImportResult, DataImportService.ImportValidationResult, DefaultProjectService.PermissionErrorResult, DefaultProjectService.ProjectNotFoundResult, EntityPropertyService.DeletePropertyValidationResult, EntityPropertyService.PropertyKeys, EntityPropertyService.PropertyResult, EntityPropertyService.PropertyServiceResult, EntityPropertyService.SetPropertyValidationResult, IssueLinkService.AddIssueLinkValidationResult, IssueLinkService.DeleteIssueLinkValidationResult, IssueLinkService.IssueLinkResult, IssueLinkService.IssueLinkValidationResult, IssueLinkService.SingleIssueLinkResult, IssueService.AssignValidationResult, 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, RemoteIssueLinkService.CreateValidationResult, RemoteIssueLinkService.DeleteByGlobalIdValidationResult, RemoteIssueLinkService.DeleteValidationResult, RemoteIssueLinkService.RemoteIssueLinkListResult, RemoteIssueLinkService.RemoteIssueLinkResult, RemoteIssueLinkService.UpdateValidationResult, RemoteVersionLinkService.DeleteValidationResult, RemoteVersionLinkService.PutValidationResult, RemoteVersionLinkService.RemoteVersionLinkListResult, RemoteVersionLinkService.RemoteVersionLinkResult, ServiceOutcomeImpl, ServiceResultImpl, ShareService.ValidateShareIssueResult, ShareService.ValidateShareResult, ShareService.ValidateShareSearchRequestResult, UserService.CreateUsernameValidationResult, UserService.CreateUserValidationResult, UserService.DeleteUserValidationResult, UserService.UpdateUserValidationResult, VersionService.AbstractVersionResult, VersionService.ArchiveVersionValidationResult, VersionService.CreateVersionValidationResult, VersionService.MoveVersionValidationResult, VersionService.ReasonsServiceResult, VersionService.ReleaseVersionValidationResult, VersionService.VersionBuilderValidationResult, VersionService.VersionResult, VersionService.VersionsResult, VoteService.VoteValidationResult, WhitelistService.WhitelistResult, WhitelistService.WhitelistUpdateValidationResult

@PublicApi
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-2014 Atlassian. All Rights Reserved.