public class

DefaultCommentBeanFactory

extends Object
implements CommentBeanFactory
java.lang.Object
   ↳ com.atlassian.jira.issue.fields.rest.json.DefaultCommentBeanFactory

Summary

Public Constructors
DefaultCommentBeanFactory(ProjectRoleManager projectRoleManager, DateTimeFormatterFactory dateTimeFormatterFactory, RendererManager rendererManager, JiraBaseUrls jiraBaseUrls, FieldLayoutManager fieldLayoutManager)
Public Methods
@Deprecated CommentJsonBean createBean(Comment comment)
Generate a bean suitable for serialisation by Jackon into JSON.@return
CommentJsonBean createBean(Comment comment, ApplicationUser loggedInUser, EmailFormatter emailFormatter)
Generate a bean suitable for serialisation by Jackon into JSON.
CommentJsonBean createRenderedBean(Comment comment, ApplicationUser loggedInUser, EmailFormatter emailFormatter)
Generate a bean suitable for serialisation by Jackon into JSON.
@Deprecated CommentJsonBean createRenderedBean(Comment comment)
Generate a bean suitable for serialisation by Jackon into JSON.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.fields.rest.json.CommentBeanFactory

Public Constructors

public DefaultCommentBeanFactory (ProjectRoleManager projectRoleManager, DateTimeFormatterFactory dateTimeFormatterFactory, RendererManager rendererManager, JiraBaseUrls jiraBaseUrls, FieldLayoutManager fieldLayoutManager)

Public Methods

@Deprecated public CommentJsonBean createBean (Comment comment)

Generate a bean suitable for serialisation by Jackon into JSON.@return

public CommentJsonBean createBean (Comment comment, ApplicationUser loggedInUser, EmailFormatter emailFormatter)

Generate a bean suitable for serialisation by Jackon into JSON.

public CommentJsonBean createRenderedBean (Comment comment, ApplicationUser loggedInUser, EmailFormatter emailFormatter)

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.

@Deprecated public CommentJsonBean createRenderedBean (Comment comment)

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.