com.atlassian.jira.issue.fields.rest.json
Class DefaultCommentBeanFactory

java.lang.Object
  extended by com.atlassian.jira.issue.fields.rest.json.DefaultCommentBeanFactory
All Implemented Interfaces:
CommentBeanFactory

public class DefaultCommentBeanFactory
extends Object
implements CommentBeanFactory

Since:
v5.2

Constructor Summary
DefaultCommentBeanFactory(ProjectRoleManager projectRoleManager, DateTimeFormatterFactory dateTimeFormatterFactory, RendererManager rendererManager, JiraBaseUrls jiraBaseUrls, FieldLayoutManager fieldLayoutManager)
           
 
Method Summary
 CommentJsonBean createBean(Comment comment)
          Generate a bean suitable for serialisation by Jackon into JSON.
 CommentJsonBean createRenderedBean(Comment comment)
          Generate a bean suitable for serialisation by Jackon into JSON.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCommentBeanFactory

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

createBean

public CommentJsonBean createBean(Comment comment)
Description copied from interface: CommentBeanFactory
Generate a bean suitable for serialisation by Jackon into JSON.

Specified by:
createBean in interface CommentBeanFactory
Returns:

createRenderedBean

public CommentJsonBean createRenderedBean(Comment comment)
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 interface CommentBeanFactory


Copyright © 2002-2013 Atlassian. All Rights Reserved.