com.atlassian.greenhopper.web.rapid
Class ResultEntry

java.lang.Object
  extended by com.atlassian.greenhopper.web.rapid.RestTemplate
      extended by com.atlassian.greenhopper.web.rapid.ResultEntry

public class ResultEntry
extends RestTemplate

Represents a result object


Constructor Summary
ResultEntry()
           
 
Method Summary
static ResultEntry createCombinedResult(ErrorCollection errors, java.lang.Object successObject, I18n2 i18n)
           
static ResultEntry createErrorResult(ErrorCollection errorCollection, I18n2 i18n)
          Creates an error result
 boolean hasErrors()
           
static ResultEntry success(java.lang.Object successObject)
           
 
Methods inherited from class com.atlassian.greenhopper.web.rapid.RestTemplate
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResultEntry

public ResultEntry()
Method Detail

success

public static ResultEntry success(java.lang.Object successObject)

hasErrors

public boolean hasErrors()

createErrorResult

public static ResultEntry createErrorResult(ErrorCollection errorCollection,
                                            I18n2 i18n)
Creates an error result

Parameters:
errorCollection - the collection of errors
i18n - the i18n object for the user
Returns:
an error ResultEntry object

createCombinedResult

public static ResultEntry createCombinedResult(ErrorCollection errors,
                                               java.lang.Object successObject,
                                               I18n2 i18n)


Copyright © 2007-2011 Atlassian. All Rights Reserved.