Interface UserBeanFactory
- All Known Implementing Classes:
DefaultUserBeanFactory
@ExperimentalApi
public interface UserBeanFactory
This provides a simple, dependency-free, straight forward API to generating the JSON corresponding to a User.
- Since:
- v5.2
-
Method Summary
Modifier and TypeMethodDescriptioncreateBean
(ApplicationUser createdUser) Deprecated.createBean
(ApplicationUser createdUser, ApplicationUser loggedInUser) Generate a bean suitable for serialisation by Jackon into JSON for given user in the context of loggedInUser.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.createBeanCollection
(Collection<ApplicationUser> createdUsers, ApplicationUser loggedInUser) Generate a bean suitable for serialisation by Jackon into JSON for given user in the context of loggedInUser.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.
-
Method Details
-
createBean
Deprecated.Generate a bean suitable for serialisation by Jackon into JSON.- Parameters:
createdUser
- Create UserJsonBean for this user
-
createBean
Generate a bean suitable for serialisation by Jackon into JSON for given user in the context of loggedInUser.- Parameters:
createdUser
- Create UserJsonBean for createdUserloggedInUser
- UserJsonBean will be created in the context of loggedInUser (i.e. escape/hide email address if necessary)
-
createBean
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.- Parameters:
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
- TimeZoneManager
-
createBeanCollection
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.- Parameters:
createdUsers
- Create UserJsonBeans for createdUsersloggedInUser
- UserJsonBean will be created in the context of loggedInUser (i.e. escape/hide email address if necessary)
-
createBeanCollection
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.- Parameters:
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
- TimeZoneManager
-
createBean(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.user.ApplicationUser)