public class CommentsFormatter extends Object
| Constructor and Description |
|---|
CommentsFormatter(List<fr.toutatice.portail.cms.nuxeo.api.domain.CommentDTO> comments)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.dom4j.Element |
generateChildrenNode(fr.toutatice.portail.cms.nuxeo.api.domain.CommentDTO comment,
Locale locale)
Generate comment children node.
|
protected org.dom4j.Element |
generateCommentActions(fr.toutatice.portail.cms.nuxeo.api.domain.CommentDTO comment)
Generate comment actions node.
|
protected org.dom4j.Element |
generateCommentAttribute(String name,
String value)
Generate comment attribute node.
|
protected org.dom4j.Element |
generateCommentNode(fr.toutatice.portail.cms.nuxeo.api.domain.CommentDTO comment,
Locale locale)
Generate comment node.
|
String |
generateHTMLContent(Locale locale)
HTML content generator entry point.
|
protected org.dom4j.Element |
generateRootNode()
Generate root node.
|
public CommentsFormatter(List<fr.toutatice.portail.cms.nuxeo.api.domain.CommentDTO> comments)
comments - document commentspublic String generateHTMLContent(Locale locale)
locale - localeprotected org.dom4j.Element generateRootNode()
protected org.dom4j.Element generateCommentNode(fr.toutatice.portail.cms.nuxeo.api.domain.CommentDTO comment,
Locale locale)
comment - commentlocale - localeprotected org.dom4j.Element generateCommentAttribute(String name, String value)
name - attribute name, used for HTML classvalue - attribute valueprotected org.dom4j.Element generateCommentActions(fr.toutatice.portail.cms.nuxeo.api.domain.CommentDTO comment)
comment - commentprotected org.dom4j.Element generateChildrenNode(fr.toutatice.portail.cms.nuxeo.api.domain.CommentDTO comment,
Locale locale)
comment - commentlocale - localeCopyright © 2023. All rights reserved.