public class CommentRenderServiceImpl extends Object implements CommentRenderService
Modifier and Type | Field and Description |
---|---|
static String |
SERIALIZED_HIGHLIGHTS_JSON_PROP
A new Json Property
JsonContentProperty key for the reference to the serialized string of the highlights |
Constructor and Description |
---|
CommentRenderServiceImpl(XhtmlContent xhtmlContent,
com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager,
com.atlassian.event.api.EventPublisher eventPublisher,
ContentPropertyService contentPropertyService) |
Modifier and Type | Method and Description |
---|---|
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
|
public static final String SERIALIZED_HIGHLIGHTS_JSON_PROP
JsonContentProperty
key for the reference to the serialized string of the highlightspublic CommentRenderServiceImpl(XhtmlContent xhtmlContent, com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager, com.atlassian.event.api.EventPublisher eventPublisher, ContentPropertyService contentPropertyService)
public CommentResult render(Comment comment, boolean hasActions, javax.servlet.http.HttpServletRequest httpRequest) throws XMLStreamException, XhtmlException
render
in interface CommentRenderService
XMLStreamException
XhtmlException
public CommentResult render(Comment comment, boolean hasActions, javax.servlet.http.HttpServletRequest httpRequest, int maxLength, boolean plainTextOnly) throws XMLStreamException, XhtmlException
CommentRenderService
render
in interface CommentRenderService
comment
- the comment to be renderedhasActions
- determine whether the returned object includes the action informationmaxLength
- the maximum length of the rendered comment's contentplainTextOnly
- the content will be rendered as plain text if this flag is trueXMLStreamException
XhtmlException
Copyright © 2003–2020 Atlassian. All rights reserved.