com.atlassian.jira.bc
Class ServiceResultImpl
java.lang.Object
com.atlassian.jira.bc.ServiceResultImpl
- All Implemented Interfaces:
- ServiceResult
- Direct Known Subclasses:
- DataImportService.ImportResult, DataImportService.ImportValidationResult, IssueLinkService.DeleteIssueLinkValidationResult, IssueLinkService.DeleteIssueLinkValidationResult, IssueLinkService.IssueLinkResult, IssueLinkService.IssueLinkResult, IssueLinkService.IssueLinkValidationResult, IssueLinkService.IssueLinkValidationResult, IssueService.IssueValidationResult, IssueService.TransitionValidationResult, LabelService.LabelsResult, LabelService.LabelSuggestionResult, LabelService.LabelValidationResult, ProjectService.AbstractProjectResult, ProjectService.AbstractProjectValidationResult, ProjectService.DeleteProjectResult, ProjectService.UpdateProjectSchemesValidationResult, RemoteIssueLinkService.DeleteByGlobalIdValidationResult, RemoteIssueLinkService.DeleteValidationResult, RemoteIssueLinkService.RemoteIssueLinkListResult, RemoteIssueLinkService.RemoteIssueLinkResult, ServiceOutcomeImpl, ShareService.ValidateShareResult, UserService.CreateUserValidationResult, UserService.DeleteUserValidationResult, VersionService.AbstractVersionResult, VersionService.CreateVersionValidationResult, VersionService.VersionsResult, VoteService.VoteValidationResult, WhitelistService.WhitelistResult
@Internal
public class ServiceResultImpl
- extends Object
- implements ServiceResult
Simple implementation of a validation result.
Consider using ServiceOutcome
, which avoids to have to create a new class.
Included in the jira-api module not because it should be used by plugin developers, but because it is extended by
inner classes on many Services eg see IssueService.TransitionValidationResult
- Since:
- v4.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceResultImpl
public ServiceResultImpl(ErrorCollection errorCollection)
isValid
public boolean isValid()
- Specified by:
isValid
in interface ServiceResult
- Returns:
- true if there are no errors, false otherwise.
getErrorCollection
public ErrorCollection getErrorCollection()
- Specified by:
getErrorCollection
in interface ServiceResult
- Returns:
- an
ErrorCollection
that contains any errors that may have happened as a result of the validations.
Copyright © 2002-2011 Atlassian. All Rights Reserved.