public class ODFContentGenerator extends ContentGenerator
Generator
for rendering ODF content data potentially synchronized.Modifier and Type | Field and Description |
---|---|
protected AmetysObjectResolver |
_resolver
The Ametys resolver
|
_contentHelper, _contentTypeExtensionPoint, _cTypesHelper, _DC_DATE_FORMAT, _languageManager, _metadataManager, _userHelper, _userProvider, _workflowProvider, _worklflowHelper
manager
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
ODFContentGenerator() |
Modifier and Type | Method and Description |
---|---|
protected void |
_saxSkill(Content skillContent,
Locale defaultLocale)
Sax a skill
|
protected void |
_saxSkills(Content skillSetsContent,
Locale defaultLocale)
Sax skills from the skills unit
|
protected void |
_saxSkillSets(Content skillSetsContent,
Locale defaultLocale)
Sax skills from the skill sets
|
protected void |
_saxSkillSets(Content odfContent,
String metadataName,
Locale defaultLocale)
Sax skill sets from the content
|
protected void |
saxSkillSets(Content odfContent,
Locale defaultLocale)
Sax all skills units metadata
|
protected void |
saxTranslations(Map<String,String> translations)
Sax the existing translations
|
void |
service(ServiceManager serviceManager) |
_addAttributeIfNotNull, _generateContent, _getCurrentStep, _getMetadataSet, _saxComment, _saxComments, _saxContent, _saxContentComments, _saxContentReactions, _saxDublinCoreMetadata, _saxIfNotNull, _saxIfNotNull, _saxIfNotNull, _saxLanguage, _saxMetadata, _saxMetadataComments, _saxOtherData, _saxOtherData, _saxWorkflowStep, generate, getDefaultLocale
dispose
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
protected AmetysObjectResolver _resolver
public ODFContentGenerator()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class ContentGenerator
ServiceException
protected void saxSkillSets(Content odfContent, Locale defaultLocale) throws SAXException, ProcessingException
odfContent
- the odf contentdefaultLocale
- the default localeSAXException
- if a saxing error occurredProcessingException
- if a processing error occurredprotected void _saxSkillSets(Content odfContent, String metadataName, Locale defaultLocale) throws SAXException
odfContent
- the ODF contentmetadataName
- the metadata namedefaultLocale
- the default localeSAXException
- if a saxing error occurredprotected void _saxSkillSets(Content skillSetsContent, Locale defaultLocale) throws SAXException
skillSetsContent
- the skill set contentdefaultLocale
- the default localeSAXException
- if a saxing error occurredprotected void _saxSkills(Content skillSetsContent, Locale defaultLocale) throws SAXException
skillSetsContent
- the skills Unit contentdefaultLocale
- the default localeSAXException
- if a saxing error occurredprotected void _saxSkill(Content skillContent, Locale defaultLocale) throws SAXException
skillContent
- the skill contentdefaultLocale
- the default localeSAXException
- if a saxing error occurredprotected void saxTranslations(Map<String,String> translations) throws SAXException
translations
- The translationsSAXException
- if an error occurs