|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.bc.JiraServiceContextImpl
public class JiraServiceContextImpl
Default implementation of the JiraServiceContext. For now, this guy has to be considered as API because devs must feed a JiraServiceContext instance to Service methods, and this is the only way to create one that will be compatible with mulitple versions of JIRA. If we don't like this, we need to provide a Factory or something.
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
ErrorCollection |
getErrorCollection()
Returns error collection, never null |
I18nHelper |
getI18nBean()
Get an I18nHelper for localising text. |
com.atlassian.crowd.embedded.api.User |
getLoggedInUser()
Returns the User who has invoked the JIRA service method. |
User |
getUser()
Returns user, can be null |
int |
hashCode()
|
String |
toString()
Prints username and error collection |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JiraServiceContextImpl(com.atlassian.crowd.embedded.api.User user)
user - userpublic JiraServiceContextImpl(User user)
JiraServiceContextImpl(com.atlassian.crowd.embedded.api.User) instead.
user - user
public JiraServiceContextImpl(com.atlassian.crowd.embedded.api.User user,
ErrorCollection errorCollection)
user - usererrorCollection - error collection; must not be null
IllegalArgumentException - if error collection is null
public JiraServiceContextImpl(User user,
ErrorCollection errorCollection)
JiraServiceContextImpl(com.atlassian.crowd.embedded.api.User, com.atlassian.jira.util.ErrorCollection) instead.
user - usererrorCollection - error collection; must not be null
IllegalArgumentException - if error collection is null
public JiraServiceContextImpl(com.atlassian.crowd.embedded.api.User user,
ErrorCollection errorCollection,
I18nHelper i18nHelper)
user - usererrorCollection - error collection; must not be nulli18nHelper - optional I18nHelper to use
IllegalArgumentException - if error collection is null
public JiraServiceContextImpl(User user,
ErrorCollection errorCollection,
I18nHelper i18nHelper)
JiraServiceContextImpl(com.atlassian.crowd.embedded.api.User, com.atlassian.jira.util.ErrorCollection, com.atlassian.jira.util.I18nHelper) instead.
user - usererrorCollection - error collection; must not be nulli18nHelper - optional I18nHelper to use
IllegalArgumentException - if error collection is null| Method Detail |
|---|
public ErrorCollection getErrorCollection()
getErrorCollection in interface JiraServiceContextpublic User getUser()
getUser in interface JiraServiceContextpublic com.atlassian.crowd.embedded.api.User getLoggedInUser()
JiraServiceContext
getLoggedInUser in interface JiraServiceContextpublic I18nHelper getI18nBean()
JiraServiceContext
getI18nBean in interface JiraServiceContextpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||