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 CommentRenderServiceXMLStreamExceptionXhtmlExceptionpublic CommentResult render(Comment comment, boolean hasActions, javax.servlet.http.HttpServletRequest httpRequest, int maxLength, boolean plainTextOnly) throws XMLStreamException, XhtmlException
CommentRenderServicerender in interface CommentRenderServicecomment - 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 trueXMLStreamExceptionXhtmlExceptionCopyright © 2003–2019 Atlassian. All rights reserved.