com.atlassian.confluence.tinymceplugin.service.impl
Class CommentRenderServiceImpl

java.lang.Object
  extended by com.atlassian.confluence.tinymceplugin.service.impl.CommentRenderServiceImpl
All Implemented Interfaces:
CommentRenderService

public class CommentRenderServiceImpl
extends Object
implements CommentRenderService


Field Summary
static String SERIALIZED_HIGHLIGHTS_JSON_PROP
          A new Json Property JsonContentProperty key for the reference to the serialized string of the highlights
 
Constructor Summary
CommentRenderServiceImpl(XhtmlContent xhtmlContent, com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager, com.atlassian.event.api.EventPublisher eventPublisher, ContentPropertyService contentPropertyService)
           
 
Method Summary
 CommentResult render(Comment comment, boolean hasActions, javax.servlet.http.HttpServletRequest httpRequest)
           
 CommentResult render(Comment comment, boolean hasActions, javax.servlet.http.HttpServletRequest httpRequest, int maxLength, boolean plainTextOnly)
          Create the JSON representation of a Comment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERIALIZED_HIGHLIGHTS_JSON_PROP

public static final String SERIALIZED_HIGHLIGHTS_JSON_PROP
A new Json Property JsonContentProperty key for the reference to the serialized string of the highlights

Since:
5.7
See Also:
Constant Field Values
Constructor Detail

CommentRenderServiceImpl

public CommentRenderServiceImpl(XhtmlContent xhtmlContent,
                                com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager,
                                com.atlassian.event.api.EventPublisher eventPublisher,
                                ContentPropertyService contentPropertyService)
Method Detail

render

public CommentResult render(Comment comment,
                            boolean hasActions,
                            javax.servlet.http.HttpServletRequest httpRequest)
                     throws XMLStreamException,
                            XhtmlException
Specified by:
render in interface CommentRenderService
Throws:
XMLStreamException
XhtmlException

render

public CommentResult render(Comment comment,
                            boolean hasActions,
                            javax.servlet.http.HttpServletRequest httpRequest,
                            int maxLength,
                            boolean plainTextOnly)
                     throws XMLStreamException,
                            XhtmlException
Description copied from interface: CommentRenderService
Create the JSON representation of a Comment

Specified by:
render in interface CommentRenderService
Parameters:
comment - the comment to be rendered
hasActions - determine whether the returned object includes the action information
maxLength - the maximum length of the rendered comment's content
plainTextOnly - the content will be rendered as plain text if this flag is true
Returns:
the transfer object (to be serialized to JSON)
Throws:
XMLStreamException
XhtmlException


Copyright © 2003–2015 Atlassian. All rights reserved.