public class DefaultWorklogBeanFactory extends Object implements WorklogBeanFactory
Constructor and Description |
---|
DefaultWorklogBeanFactory(TimeTrackingConfiguration timeTrackingConfiguration,
JiraBaseUrls jiraBaseUrls,
UserBeanFactory userBeanFactory,
UserManager userManager) |
Modifier and Type | Method and Description |
---|---|
WorklogJsonBean |
createBean(Worklog worklog,
ApplicationUser loggedInUser)
Generate a bean suitable for serialisation by Jackson into JSON.
|
Iterable<WorklogJsonBean> |
createBeans(Iterable<Worklog> worklogs,
ApplicationUser loggedInUser)
Generate beans suitable for serialisation by Jackson into JSON.
|
protected UserJsonBean |
getUserBean(String userKey,
ApplicationUser loggedInUser) |
public DefaultWorklogBeanFactory(TimeTrackingConfiguration timeTrackingConfiguration, JiraBaseUrls jiraBaseUrls, UserBeanFactory userBeanFactory, UserManager userManager)
public WorklogJsonBean createBean(Worklog worklog, ApplicationUser loggedInUser)
WorklogBeanFactory
createBean
in interface WorklogBeanFactory
worklog
- Worklog which would be used for creating bean.loggedInUser
- WorklogJsonBean will be created in the context of loggedInUser (i.e. hide email address if necessary)public Iterable<WorklogJsonBean> createBeans(Iterable<Worklog> worklogs, ApplicationUser loggedInUser)
WorklogBeanFactory
createBeans
in interface WorklogBeanFactory
worklogs
- Worklogs which would be used for creating a collection of beans.loggedInUser
- WorklogJsonBean will be created in the context of loggedInUser (i.e. hide email address if necessary)protected UserJsonBean getUserBean(String userKey, ApplicationUser loggedInUser)
Copyright © 2002-2019 Atlassian. All Rights Reserved.