Class CommentRenderServiceImpl
java.lang.Object
com.atlassian.confluence.tinymceplugin.service.impl.CommentRenderServiceImpl
- All Implemented Interfaces:
CommentRenderService
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
A new Json PropertyJsonContentProperty
key for the reference to the serialized string of the highlights -
Constructor Summary
ConstructorsConstructorDescriptionCommentRenderServiceImpl
(XhtmlContent xhtmlContent, com.atlassian.plugin.web.api.DynamicWebInterfaceManager webInterfaceManager, com.atlassian.event.api.EventPublisher eventPublisher, ContentPropertyService contentPropertyService) -
Method Summary
-
Field Details
-
SERIALIZED_HIGHLIGHTS_JSON_PROP
A new Json PropertyJsonContentProperty
key for the reference to the serialized string of the highlights- Since:
- 5.7
- See Also:
-
-
Constructor Details
-
CommentRenderServiceImpl
public CommentRenderServiceImpl(XhtmlContent xhtmlContent, com.atlassian.plugin.web.api.DynamicWebInterfaceManager webInterfaceManager, com.atlassian.event.api.EventPublisher eventPublisher, ContentPropertyService contentPropertyService)
-
-
Method Details
-
render
public CommentResult render(Comment comment, boolean hasActions, javax.servlet.http.HttpServletRequest httpRequest) throws XMLStreamException, XhtmlException - Specified by:
render
in interfaceCommentRenderService
- 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 interfaceCommentRenderService
- Parameters:
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 true- Returns:
- the transfer object (to be serialized to JSON)
- Throws:
XMLStreamException
XhtmlException
-