public class CommentsGenerator extends ServiceableGenerator
Modifier and Type | Field and Description |
---|---|
private ContentHelper |
_contentHelper |
private CurrentUserProvider |
_currentUserProvider |
private AmetysObjectResolver |
_resolver |
private RightManager |
_rightManager |
manager
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
CommentsGenerator() |
Modifier and Type | Method and Description |
---|---|
protected void |
_saxComment(Comment comment,
Content content)
SAX a comment
|
protected void |
_saxContent(Content content)
SAX a content
|
void |
generate() |
void |
service(ServiceManager smanager) |
dispose
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
private AmetysObjectResolver _resolver
private RightManager _rightManager
private CurrentUserProvider _currentUserProvider
private ContentHelper _contentHelper
public CommentsGenerator()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableGenerator
ServiceException
public void generate() throws IOException, SAXException, ProcessingException
protected void _saxComment(Comment comment, Content content) throws SAXException
comment
- The commentcontent
- The contentSAXException
- if an error occurred while saxingprotected void _saxContent(Content content) throws SAXException
content
- The contentSAXException
- if an error occurred while saxing