com.atlassian.jira.issue.fields.rest.json
Interface CommentBeanFactory

All Known Implementing Classes:
DefaultCommentBeanFactory

@ExperimentalApi
public interface CommentBeanFactory

This provides a simple, dependency-free, straight forward API to generating the JSON corresponding to a Comment.

Since:
v5.2

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.
 

Method Detail

createBean

CommentJsonBean createBean(Comment comment)
Generate a bean suitable for serialisation by Jackon into JSON.

Parameters:
comment -
Returns:

createRenderedBean

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.



Copyright © 2002-2013 Atlassian. All Rights Reserved.