@ExperimentalApi
public interface WorklogBeanFactory
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.
|
WorklogJsonBean createBean(Worklog worklog, ApplicationUser loggedInUser)
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)Iterable<WorklogJsonBean> createBeans(Iterable<Worklog> worklogs, ApplicationUser loggedInUser)
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)Copyright © 2002-2021 Atlassian. All Rights Reserved.