Interface CommentRenderService
-
- All Known Implementing Classes:
CommentRenderServiceImpl
public interface CommentRenderService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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
-
-
-
Method Detail
-
render
CommentResult render(Comment comment, boolean actions, javax.servlet.http.HttpServletRequest req) throws XMLStreamException, XhtmlException
- Throws:
XMLStreamException
XhtmlException
-
render
CommentResult render(Comment comment, boolean actions, javax.servlet.http.HttpServletRequest req, int maxLength, boolean plainTextOnly) throws XMLStreamException, XhtmlException
Create the JSON representation of a Comment- Parameters:
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 true- Returns:
- the transfer object (to be serialized to JSON)
- Throws:
XMLStreamException
XhtmlException
-
-