com.atlassian.greenhopper.web.rapid
Class ResultEntry
java.lang.Object
com.atlassian.greenhopper.web.rapid.RestTemplate
com.atlassian.greenhopper.web.rapid.ResultEntry
public class ResultEntry
- extends RestTemplate
Represents a result object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ResultEntry
public ResultEntry()
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 errorsi18n
- 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.