@Component public class JiraServiceContextFactory extends Object
JiraServiceContext
instances.Modifier and Type | Method and Description |
---|---|
JiraServiceContext |
createContext(ApplicationUser user)
Instantiates JiraServiceContext with given user and new empty error collection.
|
JiraServiceContext |
createContext(ApplicationUser user,
ErrorCollection errorCollection)
Instantiates JiraServiceContext with user and error collection.
|
JiraServiceContext |
createContext(ApplicationUser user,
ErrorCollection errorCollection,
I18nHelper i18nHelper)
Instantiates JiraServiceContext with user and error collection and I18nHelper.
|
public JiraServiceContext createContext(ApplicationUser user)
user
- userpublic JiraServiceContext createContext(ApplicationUser user, ErrorCollection errorCollection)
user
- usererrorCollection
- error collection; must not be nullIllegalArgumentException
- if error collection is nullpublic JiraServiceContext createContext(ApplicationUser user, ErrorCollection errorCollection, I18nHelper i18nHelper)
user
- usererrorCollection
- error collection; must not be nulli18nHelper
- optional I18nHelper to useIllegalArgumentException
- if error collection is nullCopyright © 2002-2019 Atlassian. All Rights Reserved.