com.atlassian.jira.bc
Class ServiceResultImpl

java.lang.Object
  extended by com.atlassian.jira.bc.ServiceResultImpl
All Implemented Interfaces:
ServiceResult
Direct Known Subclasses:
IssueService.IssueValidationResult, IssueService.TransitionValidationResult, LabelService.LabelsResult, LabelService.LabelSuggestionResult, LabelService.LabelValidationResult, ProjectService.AbstractProjectResult, ProjectService.AbstractProjectValidationResult, ProjectService.DeleteProjectResult, ProjectService.UpdateProjectSchemesValidationResult, ServiceOutcomeImpl, UserService.CreateUserValidationResult, UserService.DeleteUserValidationResult, VersionService.AbstractVersionResult, VersionService.CreateVersionValidationResult, VersionService.VersionsResult, VoteService.VoteValidationResult

public class ServiceResultImpl
extends java.lang.Object
implements ServiceResult

Simple implementation of a validation result.

Since:
v4.0

Constructor Summary
ServiceResultImpl(ErrorCollection errorCollection)
           
 
Method Summary
 ErrorCollection getErrorCollection()
           
 boolean isValid()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceResultImpl

public ServiceResultImpl(ErrorCollection errorCollection)
Method Detail

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-2010 Atlassian. All Rights Reserved.