@PublicApi public class JiraServiceContextImpl extends Object implements JiraServiceContext
Constructor and Description |
---|
JiraServiceContextImpl(ApplicationUser user)
Instantiates this class with given user and new empty error collection.
|
JiraServiceContextImpl(ApplicationUser user,
ErrorCollection errorCollection)
Instantiates this class with user and error collection.
|
JiraServiceContextImpl(ApplicationUser user,
ErrorCollection errorCollection,
I18nHelper i18nHelper)
Instantiates this class with user and error collection and I18nHelper.
|
JiraServiceContextImpl(com.atlassian.crowd.embedded.api.User user)
Deprecated.
since 6.1 use
JiraServiceContextImpl(com.atlassian.jira.user.ApplicationUser) instead |
JiraServiceContextImpl(com.atlassian.crowd.embedded.api.User user,
ErrorCollection errorCollection)
Deprecated.
|
JiraServiceContextImpl(com.atlassian.crowd.embedded.api.User user,
ErrorCollection errorCollection,
I18nHelper i18nHelper)
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ErrorCollection |
getErrorCollection()
Returns error collection, never null
|
I18nHelper |
getI18nBean()
Get an I18nHelper for localising text.
|
ApplicationUser |
getLoggedInApplicationUser()
Returns the User who has invoked the JIRA service method.
|
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
|
@Deprecated public JiraServiceContextImpl(com.atlassian.crowd.embedded.api.User user)
JiraServiceContextImpl(com.atlassian.jira.user.ApplicationUser)
insteaduser
- user@Deprecated public JiraServiceContextImpl(com.atlassian.crowd.embedded.api.User user, ErrorCollection errorCollection)
JiraServiceContextImpl(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.util.ErrorCollection)
insteaduser
- usererrorCollection
- error collection; must not be nullIllegalArgumentException
- if error collection is null@Deprecated public JiraServiceContextImpl(com.atlassian.crowd.embedded.api.User user, ErrorCollection errorCollection, I18nHelper i18nHelper)
JiraServiceContextImpl(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.util.ErrorCollection, com.atlassian.jira.util.I18nHelper)
insteaduser
- usererrorCollection
- error collection; must not be nulli18nHelper
- optional I18nHelper to useIllegalArgumentException
- if error collection is nullpublic JiraServiceContextImpl(ApplicationUser user)
user
- userpublic JiraServiceContextImpl(ApplicationUser user, ErrorCollection errorCollection)
user
- usererrorCollection
- error collection; must not be nullIllegalArgumentException
- if error collection is nullpublic JiraServiceContextImpl(ApplicationUser user, ErrorCollection errorCollection, I18nHelper i18nHelper)
user
- usererrorCollection
- error collection; must not be nulli18nHelper
- optional I18nHelper to useIllegalArgumentException
- if error collection is nullpublic ErrorCollection getErrorCollection()
getErrorCollection
in interface JiraServiceContext
public com.atlassian.crowd.embedded.api.User getLoggedInUser()
JiraServiceContext
getLoggedInUser
in interface JiraServiceContext
public ApplicationUser getLoggedInApplicationUser()
JiraServiceContext
getLoggedInApplicationUser
in interface JiraServiceContext
public I18nHelper getI18nBean()
JiraServiceContext
getI18nBean
in interface JiraServiceContext
Copyright © 2002-2015 Atlassian. All Rights Reserved.