public class SurveysGenerator extends ServiceableGenerator
| Modifier and Type | Field and Description |
|---|---|
protected AmetysObjectResolver |
_resolver
The Ametys object resolver
|
protected SiteManager |
_siteManager
The site manager
|
protected SurveyDAO |
_surveyDAO
The DAO for surveys
|
managerobjectModel, parameters, resolver, sourcecontentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer| Constructor and Description |
|---|
SurveysGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
generate() |
protected ModifiableTraversableAmetysObject |
getSurveyRootNode(String siteName,
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
|
protected void |
toSAXPicture(AbstractSurveyElement elmt)
SAX the picture of the element of a survey
|
disposerecycle, setupsetConsumer, setContentHandler, setLexicalHandlerenableLogging, getLogger, setupLogger, setupLogger, setupLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetConsumerprotected AmetysObjectResolver _resolver
protected SiteManager _siteManager
protected SurveyDAO _surveyDAO
public SurveysGenerator()
public void service(ServiceManager serviceManager) throws ServiceException
service in interface Serviceableservice in class ServiceableGeneratorServiceExceptionpublic void generate() throws IOException, SAXException, ProcessingException
protected void toSAX(Survey survey, boolean saxChildren) throws SAXException
survey - the survey to SAXsaxChildren - true to SAX childrenSAXException - if error occurs while SAXingprotected void toSAX(SurveyPage page, boolean saxChildren, boolean saxBranches) throws SAXException
page - the page to SAXsaxChildren - true to SAX childrensaxBranches - true to SAX branch logicSAXException - if error occurs while SAXingprotected void saxBranches(SurveyPage page) throws SAXException
page - the pageSAXException - if error occurs while SAXingprotected void toSAX(SurveyQuestion question) throws SAXException
question - the question to SAXSAXException - if error occurs while SAXingprotected void toSAXPicture(AbstractSurveyElement elmt) throws SAXException
elmt - The survey elementSAXException - If an error occurredprotected ModifiableTraversableAmetysObject getSurveyRootNode(String siteName, String lang) throws RepositoryException
siteName - the site namelang - the languageRepositoryException - if an error occurs when retrieving the survey's root node