|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.greenhopper.service.api.ResultFactory
@Service public class ResultFactory
Factory for constructing service results in our API.
| Constructor Summary | |
|---|---|
ResultFactory()
|
|
| Method Summary | ||
|---|---|---|
|
makeResult(ErrorCollection errors,
T payload,
com.atlassian.crowd.embedded.api.User user)
Constructs a ServiceOutcome result from a payload and an ErrorCollection,
which is converted into a JIRA ErrorCollection. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResultFactory()
| Method Detail |
|---|
public <T> com.atlassian.jira.bc.ServiceOutcome<T> makeResult(ErrorCollection errors,
T payload,
com.atlassian.crowd.embedded.api.User user)
ServiceOutcome result from a payload and an ErrorCollection,
which is converted into a JIRA ErrorCollection.
The messages of the error collection are translated into the specified user's locale.
T - the type of the payloaderrors - an errors which were generated by the service operationpayload - the payload from the service operationuser - the user who performed the service operation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||