Interface ServiceResult

All Known Subinterfaces:
ServiceOutcome<T>
All Known Implementing Classes:
AdhocNotificationService.ValidateNotificationResult, AnonymizeUserService.AnonymizeValidationResult, ArchivedIssueSearchService.ValidationResult, ArchivedIssueService.ArchivingResult, ArchivedIssueService.ValidationResult, ArchivedProjectService.ArchivingResult, ArchivedProjectService.ValidationResult, CommentService.CommentCreateValidationResult, CommentService.CommentUpdateValidationResult, DataImportService.ImportResult, DataImportService.ImportValidationResult, DefaultProjectService.PermissionErrorResult, DefaultProjectService.ProjectNotFoundResult, EntityPropertyService.DeletePropertyValidationResult, EntityPropertyService.PropertyKeys, EntityPropertyService.PropertyResult, EntityPropertyService.PropertyServiceResult, EntityPropertyService.SetPropertyValidationResult, HistoryMetadataManager.HistoryMetadataResult, IssueLinkService.AddIssueLinkValidationResult, IssueLinkService.DeleteIssueLinkValidationResult, IssueLinkService.IssueLinkResult, IssueLinkService.IssueLinkValidationResult, IssueLinkService.SingleIssueLinkResult, IssueService.AssignValidationResult, IssueService.AsynchronousTaskResult, IssueService.CloneValidationResult, IssueService.CreateValidationResult, IssueService.DeleteValidationResult, IssueService.IssueResult, IssueService.IssueValidationResult, IssueService.TransitionValidationResult, IssueService.UpdateValidationResult, IssueTypeService.CreateValidationResult, IssueTypeService.DeleteValidationResult, IssueTypeService.UpdateValidationResult, LabelService.AddLabelValidationResult, LabelService.LabelsResult, LabelService.LabelSuggestionResult, LabelService.LabelValidationResult, LabelService.SetLabelValidationResult, ProjectService.AbstractProjectResult, ProjectService.AbstractProjectValidationResult, 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, ServiceOutcomeWithWarnings, ServiceResultImpl, ServiceResultWithWarnings, ShareService.ValidateShareIssueResult, ShareService.ValidateShareResult, ShareService.ValidateShareSearchRequestResult, TerminologyEntryWriter.TerminologyValidationResult, UpdateUserApplicationHelper.ApplicationUpdateResult, UserPropertyChangeService.UserPropertyChangeValidationResult, UserService.AddUserToApplicationValidationResult, UserService.CreateUsernameValidationResult, UserService.CreateUserValidationResult, UserService.DeleteUserValidationResult, UserService.RemoveUserFromApplicationValidationResult, UserService.UpdateUserValidationResult, VersionService.AbstractVersionResult, VersionService.ArchiveVersionValidationResult, VersionService.CreateVersionValidationResult, VersionService.MoveVersionValidationResult, VersionService.ReasonsServiceResult, VersionService.ReleaseVersionValidationResult, VersionService.VersionBuilderValidationResult, VersionService.VersionResult, VersionService.VersionsResult, VoteService.VoteValidationResult

@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:
  • Method Details

    • 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.
    • getWarningCollection

      WarningCollection getWarningCollection()
      Returns:
      an WarningCollection that contains all warnings that may have happened as a result of the validation.
    • hasWarnings

      default boolean hasWarnings()