public class ProgramContentGenerator extends ODFContentGenerator
| Modifier and Type | Field and Description |
|---|---|
protected SourceResolver |
_srcResolver
The source resolver
|
_resolver_contentHelper, _contentTypeExtensionPoint, _cTypesHelper, _DC_DATE_FORMAT, _languageManager, _metadataManager, _workflowProvider, _worklflowHelpermanagerobjectModel, parameters, resolver, sourcecontentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer| Constructor and Description |
|---|
ProgramContentGenerator() |
| Modifier and Type | Method and Description |
|---|---|
private void |
_addAttrIfNotEmpty(AttributesImpl attrs,
String attrName,
String attrValue) |
private Set<String> |
_getContentIds(CompositeMetadata metadataHolder,
MetadataDefinitionHolder metadataDefHolder,
String contentType) |
protected void |
_saxOtherData(Content content)
SAX any other data needed by the view.
|
protected Set<String> |
getLinkedContents(Content content,
String linkedContentType)
Get the linked contents of the defined content type.
|
protected void |
saxChildProgramPart(AbstractProgram program)
SAX the referenced
ProgramParts |
protected void |
saxContainer(Container container,
String parentPath)
SAX a container
|
protected void |
saxContent(Content content,
String metadataSetName)
SAX the HTML content of a
Content |
protected void |
saxContent(Content content,
String metadataSetName,
String format,
boolean withContentRoot,
boolean ignoreChildren)
SAX a
Content to given format |
protected void |
saxCourse(Course course,
String parentPath)
SAX a course
|
protected void |
saxCourseList(CourseList courseList,
String parentPath)
SAX a course list
|
protected void |
saxLinkedContents(Content content,
String tagName,
String linkedContentType,
String metadataSet)
SAX the referenced content types.
|
protected void |
saxOrgUnits(Content content)
SAX the referenced
OrgUnits |
protected void |
saxPersons(Content content)
SAX the referenced
Persons |
protected void |
saxSubProgram(SubProgram subProgram,
String parentPath)
SAX a sub program
|
protected void |
saxTranslation(Content content)
SAX the existing translation
|
void |
service(ServiceManager serviceManager) |
saxTranslations_addAttributeIfNotNull, _generateContent, _getCurrentStep, _getMetadataSet, _saxContent, _saxContentComments, _saxDublinCoreMetadata, _saxIfNotNull, _saxIfNotNull, _saxIfNotNull, _saxLanguage, _saxMetadata, _saxMetadataComments, _saxWorkflowStep, generate, getDefaultLocaledisposerecycle, setupsetConsumer, setContentHandler, setLexicalHandlerenableLogging, getLogger, setupLogger, setupLogger, setupLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetConsumerprotected SourceResolver _srcResolver
public ProgramContentGenerator()
public void service(ServiceManager serviceManager) throws ServiceException
service in interface Serviceableservice in class ODFContentGeneratorServiceExceptionprotected void _saxOtherData(Content content) throws SAXException, ProcessingException
ContentGeneratorDefault implementation does nothing.
_saxOtherData in class ContentGeneratorcontent - the content.SAXException - if an error occurs while SAXing.ProcessingException - if an error occurs.protected void saxPersons(Content content) throws SAXException
Personscontent - The content to analyzeSAXException - if an error occurs while saxingprotected void saxOrgUnits(Content content) throws SAXException
OrgUnitscontent - The content to analyzeSAXException - if an error occurs while saxingprotected void saxChildProgramPart(AbstractProgram program) throws SAXException
ProgramPartsprogram - The program or subprogramSAXException - if an error occurs while saxingprotected void saxTranslation(Content content) throws SAXException
content - The contentSAXException - if an error occurs while saxingprotected void saxLinkedContents(Content content, String tagName, String linkedContentType, String metadataSet) throws SAXException
content - The content to analyzetagName - The root tagNamelinkedContentType - The content type to searchmetadataSet - The metadata set to parse the found contentsSAXException - if an error occurs while saxingprotected Set<String> getLinkedContents(Content content, String linkedContentType)
content - The content to analyzelinkedContentType - The content type to searchSet of content idsprivate Set<String> _getContentIds(CompositeMetadata metadataHolder, MetadataDefinitionHolder metadataDefHolder, String contentType)
protected void saxContainer(Container container, String parentPath) throws SAXException
container - the container to SAXparentPath - the parent pathSAXException - if an error occursprotected void saxSubProgram(SubProgram subProgram, String parentPath) throws SAXException
subProgram - the sub program to SAXparentPath - the parent pathSAXException - if an error occursprotected void saxCourseList(CourseList courseList, String parentPath) throws SAXException
courseList - The course list to SAXparentPath - the parent pathSAXException - if an error occursprotected void saxCourse(Course course, String parentPath) throws SAXException
course - the course to SAXparentPath - the parent pathSAXException - if an error occursprotected void saxContent(Content content, String metadataSetName) throws SAXException, IOException
Contentcontent - the contentmetadataSetName - the metadata set nameSAXException - If an error occurred saxing the contentIOException - If an error occurred resolving the contentprotected void saxContent(Content content, String metadataSetName, String format, boolean withContentRoot, boolean ignoreChildren) throws SAXException, IOException
Content to given formatcontent - the contentmetadataSetName - the metadata set nameformat - the output formatwithContentRoot - true to wrap content stream into a root content tagignoreChildren - true to not SAX sub contentsSAXException - If an error occurred saxing the contentIOException - If an error occurred resolving the contentprivate void _addAttrIfNotEmpty(AttributesImpl attrs, String attrName, String attrValue)