public interface CommentRenderService
Modifier and Type | Method and Description |
---|---|
CommentResult |
render(Comment comment,
boolean actions,
javax.servlet.http.HttpServletRequest req) |
CommentResult |
render(Comment comment,
boolean actions,
javax.servlet.http.HttpServletRequest req,
int maxLength,
boolean plainTextOnly)
Create the JSON representation of a Comment
|
CommentResult render(Comment comment, boolean actions, javax.servlet.http.HttpServletRequest req) throws XMLStreamException, XhtmlException
XMLStreamException
XhtmlException
CommentResult render(Comment comment, boolean actions, javax.servlet.http.HttpServletRequest req, int maxLength, boolean plainTextOnly) throws XMLStreamException, XhtmlException
comment
- the comment to be renderedactions
- determine whether the returned object includes the action informationreq
- maxLength
- 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–2016 Atlassian. All rights reserved.