|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.bc.JiraServiceContextImpl
public class JiraServiceContextImpl
Default implementation of the JiraServiceContext.
Constructor Summary | |
---|---|
JiraServiceContextImpl(com.opensymphony.user.User user)
Instantiates this class with given user and new empty error collection. |
|
JiraServiceContextImpl(com.opensymphony.user.User user,
ErrorCollection errorCollection)
Instantiates this class with user and error collection. |
|
JiraServiceContextImpl(com.opensymphony.user.User user,
ErrorCollection errorCollection,
I18nHelper i18nHelper)
Instantiates this class with user and error collection and I18nHelper. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
ErrorCollection |
getErrorCollection()
Returns error collection, never null |
I18nHelper |
getI18nBean()
Get an I18nHelper for localising text. |
com.opensymphony.user.User |
getUser()
Returns user, can be null |
int |
hashCode()
|
java.lang.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.opensymphony.user.User user)
user
- userpublic JiraServiceContextImpl(com.opensymphony.user.User user, ErrorCollection errorCollection)
user
- usererrorCollection
- error collection; must not be null
java.lang.IllegalArgumentException
- if error collection is nullpublic JiraServiceContextImpl(com.opensymphony.user.User user, ErrorCollection errorCollection, I18nHelper i18nHelper)
user
- usererrorCollection
- error collection; must not be nulli18nHelper
- optional I18nHelper to use
java.lang.IllegalArgumentException
- if error collection is nullMethod Detail |
---|
public ErrorCollection getErrorCollection()
getErrorCollection
in interface JiraServiceContext
public com.opensymphony.user.User getUser()
getUser
in interface JiraServiceContext
public I18nHelper getI18nBean()
JiraServiceContext
getI18nBean
in interface JiraServiceContext
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |