|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.bc.JiraServiceContextImpl
@PublicApi 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.
Constructor Summary | |
---|---|
JiraServiceContextImpl(com.atlassian.crowd.embedded.api.User user)
Instantiates this class with given user and new empty error collection. |
|
JiraServiceContextImpl(com.atlassian.crowd.embedded.api.User user,
ErrorCollection errorCollection)
Instantiates this class with user and error collection. |
|
JiraServiceContextImpl(com.atlassian.crowd.embedded.api.User user,
ErrorCollection errorCollection,
I18nHelper i18nHelper)
Instantiates this class with user and error collection and I18nHelper. |
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. |
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(com.atlassian.crowd.embedded.api.User user, ErrorCollection errorCollection)
user
- usererrorCollection
- error collection; must not be null
IllegalArgumentException
- if error collection is nullpublic 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 nullMethod Detail |
---|
public ErrorCollection getErrorCollection()
getErrorCollection
in interface JiraServiceContext
public com.atlassian.crowd.embedded.api.User getLoggedInUser()
JiraServiceContext
getLoggedInUser
in interface JiraServiceContext
public I18nHelper getI18nBean()
JiraServiceContext
getI18nBean
in interface JiraServiceContext
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |