@PublicApi public class ServiceResultImpl extends Object implements ServiceResult
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(ErrorCollection errorCollection)
public ServiceResultImpl(ErrorCollection errorCollection, 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-2015 Atlassian. All Rights Reserved.