@PublicApi public class ServiceResultImpl extends Object implements ServiceResult, Serializable
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
Constructor and Description |
---|
ServiceResultImpl(ErrorCollection errorCollection) |
ServiceResultImpl(ErrorCollection errorCollection,
WarningCollection warningCollection) |
Modifier and Type | Method and Description |
---|---|
ErrorCollection |
getErrorCollection() |
WarningCollection |
getWarningCollection() |
boolean |
isValid() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasWarnings
public ServiceResultImpl(@Nonnull ErrorCollection errorCollection)
public ServiceResultImpl(@Nonnull ErrorCollection errorCollection, @Nonnull WarningCollection warningCollection)
public boolean isValid()
isValid
in interface ServiceResult
public ErrorCollection getErrorCollection()
getErrorCollection
in interface ServiceResult
ErrorCollection
that contains any errors that may have happened as a result of the validations.public WarningCollection getWarningCollection()
getWarningCollection
in interface ServiceResult
WarningCollection
that contains all warnings that may have happened as a result of the validation.Copyright © 2002-2019 Atlassian. All Rights Reserved.