public class SurveysGenerator extends ServiceableGenerator
| Modifier and Type | Field and Description |
|---|---|
protected org.ametys.plugins.repository.AmetysObjectResolver |
_resolver
The Ametys object resolver
|
protected org.ametys.web.repository.site.SiteManager |
_siteManager
The site manager
|
managerobjectModel, parameters, resolver, sourcecontentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer| Constructor and Description |
|---|
SurveysGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
generate() |
protected org.ametys.plugins.repository.ModifiableTraversableAmetysObject |
getSurveyRootNode(java.lang.String siteName,
java.lang.String lang)
Get the root node for surveys
|
protected void |
saxBranches(SurveyPage page)
SAX branch logic
|
void |
service(ServiceManager serviceManager) |
protected void |
toSAX(Survey survey,
boolean saxChildren)
SAX a survey
|
protected void |
toSAX(SurveyPage page,
boolean saxChildren,
boolean saxBranches)
SAX a survey page
|
protected void |
toSAX(SurveyQuestion question)
SAX a survey question
|
disposerecycle, setupsetConsumer, setContentHandler, setLexicalHandlerenableLogging, getLogger, setupLogger, setupLogger, setupLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetConsumerprotected org.ametys.plugins.repository.AmetysObjectResolver _resolver
protected org.ametys.web.repository.site.SiteManager _siteManager
public void service(ServiceManager serviceManager) throws ServiceException
service in interface Serviceableservice in class ServiceableGeneratorServiceExceptionpublic void generate()
throws java.io.IOException,
org.xml.sax.SAXException,
ProcessingException
java.io.IOExceptionorg.xml.sax.SAXExceptionProcessingExceptionprotected void toSAX(Survey survey, boolean saxChildren) throws org.xml.sax.SAXException
survey - the survey to SAXsaxChildren - true to SAX childrenorg.xml.sax.SAXException - if error occurs while SAXingprotected void toSAX(SurveyPage page, boolean saxChildren, boolean saxBranches) throws org.xml.sax.SAXException
page - the page to SAXsaxChildren - true to SAX childrensaxBranches - true to SAX branch logicorg.xml.sax.SAXException - if error occurs while SAXingprotected void saxBranches(SurveyPage page) throws org.xml.sax.SAXException
page - the pageorg.xml.sax.SAXException - if error occurs while SAXingprotected void toSAX(SurveyQuestion question) throws org.xml.sax.SAXException
question - the question to SAXorg.xml.sax.SAXException - if error occurs while SAXingprotected org.ametys.plugins.repository.ModifiableTraversableAmetysObject getSurveyRootNode(java.lang.String siteName,
java.lang.String lang)
throws javax.jcr.RepositoryException
siteName - the site namelang - the languagejavax.jcr.RepositoryExceptionCopyright © 2010 Anyware Services. All Rights Reserved.