Interface CommentRenderService
- All Known Implementing Classes:
CommentRenderServiceImpl
public interface CommentRenderService
-
Method Details
-
render
CommentResult render(Comment comment, boolean actions, javax.servlet.http.HttpServletRequest req) throws XMLStreamException, XhtmlException - Throws:
XMLStreamExceptionXhtmlException
-
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:
XMLStreamExceptionXhtmlException
-