com.atlassian.jira.bc.project.version
Class VersionService.ReasonsServiceResult<R,T>

java.lang.Object
  extended by com.atlassian.jira.bc.ServiceResultImpl
      extended by com.atlassian.jira.bc.project.version.VersionService.ReasonsServiceResult<R,T>
Type Parameters:
R - the type of Reasons
T - the type of the Result object if successful
All Implemented Interfaces:
ServiceResult
Direct Known Subclasses:
VersionService.VersionBuilderValidationResult
Enclosing interface:
VersionService

public static class VersionService.ReasonsServiceResult<R,T>
extends ServiceResultImpl

A generified ServiceResultImpl that allows Service-specified Reasons to be set as part of the result (in addition to Reasons specified inside the ErrorCollection.

Since:
v6.0

Constructor Summary
VersionService.ReasonsServiceResult(ErrorCollection errorCollection, Set<R> specificReasons)
           
VersionService.ReasonsServiceResult(ErrorCollection errorCollection, Set<R> specificReasons, T result)
           
 
Method Summary
 T getResult()
           
 Set<R> getSpecificReasons()
           
 
Methods inherited from class com.atlassian.jira.bc.ServiceResultImpl
getErrorCollection, isValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionService.ReasonsServiceResult

public VersionService.ReasonsServiceResult(ErrorCollection errorCollection,
                                           Set<R> specificReasons)

VersionService.ReasonsServiceResult

public VersionService.ReasonsServiceResult(ErrorCollection errorCollection,
                                           Set<R> specificReasons,
                                           T result)
Method Detail

getSpecificReasons

public Set<R> getSpecificReasons()

getResult

public T getResult()


Copyright © 2002-2014 Atlassian. All Rights Reserved.