Class DefaultCommentBeanFactory
java.lang.Object
com.atlassian.jira.issue.fields.rest.json.DefaultCommentBeanFactory
- All Implemented Interfaces:
CommentBeanFactory
- Since:
- v5.2
-
Constructor Summary
ConstructorDescriptionDefaultCommentBeanFactory
(ProjectRoleManager projectRoleManager, DateTimeFormatterFactory dateTimeFormatterFactory, RendererManager rendererManager, JiraBaseUrls jiraBaseUrls, FieldLayoutManager fieldLayoutManager) -
Method Summary
Modifier and TypeMethodDescriptioncreateBean
(Comment comment) Deprecated.createBean
(Comment comment, ApplicationUser loggedInUser, EmailFormatter emailFormatter) Generate a bean suitable for serialisation by Jackon into JSON.createRenderedBean
(Comment comment, ApplicationUser loggedInUser, EmailFormatter emailFormatter) Generate a bean suitable for serialisation by Jackon into JSON.
-
Constructor Details
-
DefaultCommentBeanFactory
public DefaultCommentBeanFactory(ProjectRoleManager projectRoleManager, DateTimeFormatterFactory dateTimeFormatterFactory, RendererManager rendererManager, JiraBaseUrls jiraBaseUrls, FieldLayoutManager fieldLayoutManager)
-
-
Method Details
-
createBean
Deprecated.Description copied from interface:CommentBeanFactory
Generate a bean suitable for serialisation by Jackon into JSON.- Specified by:
createBean
in interfaceCommentBeanFactory
- Returns:
-
createBean
public CommentJsonBean createBean(Comment comment, ApplicationUser loggedInUser, EmailFormatter emailFormatter) Description copied from interface:CommentBeanFactory
Generate a bean suitable for serialisation by Jackon into JSON.- Specified by:
createBean
in interfaceCommentBeanFactory
-
createRenderedBean
public CommentJsonBean createRenderedBean(Comment comment, ApplicationUser loggedInUser, EmailFormatter emailFormatter) Description copied from interface:CommentBeanFactory
Generate a bean suitable for serialisation by Jackon into JSON. Render the body of the comment according to the field configuration. Mostly this means convert wiki markup to HTML.- Specified by:
createRenderedBean
in interfaceCommentBeanFactory
-