com.atlassian.confluence.tinymceplugin.service.impl
Class CommentRenderServiceImpl
java.lang.Object
com.atlassian.confluence.tinymceplugin.service.impl.CommentRenderServiceImpl
- All Implemented Interfaces:
- CommentRenderService
public class CommentRenderServiceImpl
- extends Object
- implements CommentRenderService
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 |
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
CommentRenderServiceImpl
public CommentRenderServiceImpl(XhtmlContent xhtmlContent,
com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager,
com.atlassian.event.api.EventPublisher eventPublisher,
ContentPropertyService contentPropertyService)
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 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
Copyright © 2003–2015 Atlassian. All rights reserved.