public class DefaultUserBeanFactory extends Object implements UserBeanFactory
Constructor and Description |
---|
DefaultUserBeanFactory(JiraBaseUrls jiraBaseUrls)
Deprecated.
Use
#DefaultUserBeanFactory(com.atlassian.jira.issue.fields.rest.json.beans.JiraBaseUrls, com.atlassian.jira.util.EmailFormatter, com.atlassian.jira.timezone.TimeZoneManager)) |
DefaultUserBeanFactory(JiraBaseUrls jiraBaseUrls,
EmailFormatter emailFormatter)
Deprecated.
Use
#DefaultUserBeanFactory(com.atlassian.jira.issue.fields.rest.json.beans.JiraBaseUrls, com.atlassian.jira.util.EmailFormatter, com.atlassian.jira.timezone.TimeZoneManager)) |
DefaultUserBeanFactory(JiraBaseUrls jiraBaseUrls,
EmailFormatter emailFormatter,
TimeZoneManager timeZoneManager) |
Modifier and Type | Method and Description |
---|---|
UserJsonBean |
createBean(ApplicationUser createdUser)
|
UserJsonBean |
createBean(ApplicationUser createdUser,
ApplicationUser loggedInUser)
Generate a bean suitable for serialisation by Jackon into JSON for given user in the context of loggedInUser.
|
UserJsonBean |
createBean(ApplicationUser createdUser,
ApplicationUser loggedInUser,
JiraBaseUrls jiraBaseUrls,
EmailFormatter emailFormatter,
TimeZoneManager timeZoneManager)
Generate a bean suitable for serialisation by Jackon into JSON for given user in the context of loggedInUser.
|
Collection<UserJsonBean> |
createBeanCollection(Collection<ApplicationUser> createdUsers,
ApplicationUser loggedInUser)
Generate a bean suitable for serialisation by Jackon into JSON for given user in the context of loggedInUser.
|
Collection<UserJsonBean> |
createBeanCollection(Collection<ApplicationUser> createdUsers,
ApplicationUser loggedInUser,
JiraBaseUrls jiraBaseUrls,
EmailFormatter emailFormatter,
TimeZoneManager timeZoneManager)
Generate a bean suitable for serialisation by Jackon into JSON for given user in the context of loggedInUser.
|
@Deprecated public DefaultUserBeanFactory(JiraBaseUrls jiraBaseUrls)
#DefaultUserBeanFactory(com.atlassian.jira.issue.fields.rest.json.beans.JiraBaseUrls, com.atlassian.jira.util.EmailFormatter, com.atlassian.jira.timezone.TimeZoneManager))
@Deprecated public DefaultUserBeanFactory(JiraBaseUrls jiraBaseUrls, EmailFormatter emailFormatter)
#DefaultUserBeanFactory(com.atlassian.jira.issue.fields.rest.json.beans.JiraBaseUrls, com.atlassian.jira.util.EmailFormatter, com.atlassian.jira.timezone.TimeZoneManager))
public DefaultUserBeanFactory(JiraBaseUrls jiraBaseUrls, EmailFormatter emailFormatter, TimeZoneManager timeZoneManager)
@Deprecated public UserJsonBean createBean(ApplicationUser createdUser)
createBean(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.user.ApplicationUser)
UserBeanFactory
createBean
in interface UserBeanFactory
createdUser
- Create UserJsonBean for this userpublic UserJsonBean createBean(ApplicationUser createdUser, ApplicationUser loggedInUser)
UserBeanFactory
createBean
in interface UserBeanFactory
createdUser
- Create UserJsonBean for createdUserloggedInUser
- UserJsonBean will be created in the context of loggedInUser (i.e. escape/hide email address if necessary)public UserJsonBean createBean(ApplicationUser createdUser, ApplicationUser loggedInUser, JiraBaseUrls jiraBaseUrls, EmailFormatter emailFormatter, TimeZoneManager timeZoneManager)
UserBeanFactory
createBean
in interface UserBeanFactory
createdUser
- Create UserJsonBean for createdUserloggedInUser
- UserJsonBean will be created in the context of loggedInUser (i.e. escape/hide email address if necessary)jiraBaseUrls
- JiraBaseUrlsemailFormatter
- EmailFormattertimeZoneManager
- TimeZoneManagerpublic Collection<UserJsonBean> createBeanCollection(Collection<ApplicationUser> createdUsers, ApplicationUser loggedInUser)
UserBeanFactory
createBeanCollection
in interface UserBeanFactory
createdUsers
- Create UserJsonBeans for createdUsersloggedInUser
- UserJsonBean will be created in the context of loggedInUser (i.e. escape/hide email address if necessary)public Collection<UserJsonBean> createBeanCollection(Collection<ApplicationUser> createdUsers, ApplicationUser loggedInUser, JiraBaseUrls jiraBaseUrls, EmailFormatter emailFormatter, TimeZoneManager timeZoneManager)
UserBeanFactory
createBeanCollection
in interface UserBeanFactory
createdUsers
- Create UserJsonBeans for createdUsersloggedInUser
- UserJsonBean will be created in the context of loggedInUser (i.e. escape/hide email address if necessary)jiraBaseUrls
- JiraBaseUrlsemailFormatter
- EmailFormattertimeZoneManager
- TimeZoneManagerCopyright © 2002-2021 Atlassian. All Rights Reserved.