Class OrgUnitGenerator
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.generation.AbstractGenerator
org.apache.cocoon.generation.ServiceableGenerator
org.ametys.cms.content.ContentGenerator
org.ametys.web.content.ContentGenerator
org.ametys.plugins.userdirectory.generator.OrgUnitGenerator
- All Implemented Interfaces:
Poolable,Recyclable,Disposable,Component,LogEnabled,Serviceable,Generator,SitemapModelComponent,XMLProducer
OrgUnit Generator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentHelperThe content helperprotected OrganisationChartPageHandlerThe organization chart page handlerprotected AmetysObjectResolverThe ametys object resolverprotected SourceResolverThe source resolverFields inherited from class org.ametys.cms.content.ContentGenerator
_contentSaxer, _contentTypeExtensionPoint, _cTypesHelper, _DC_DATE_FORMATFields inherited from class org.apache.cocoon.generation.ServiceableGenerator
managerFields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, sourceFields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void_saxChildOrgUnits(Content content) Sax child orgUnits from the orgUnit contentprotected void_saxOtherData(Content content) SAX any other data needed by the view.protected voidSax users from the orgUnit contentprotected voidsaxContent(Content content, String viewName) SAX the HTML content of aContentprotected voidsaxContent(Content content, String viewName, String format) SAX aContentto given formatprotected voidsaxOrgUnit(Content orgUnit, String viewName) SAX a orgUnit contentprotected voidSAX a user contentvoidservice(ServiceManager serviceManager) Methods inherited from class org.ametys.web.content.ContentGenerator
getDefaultLocaleMethods inherited from class org.ametys.cms.content.ContentGenerator
_generateContent, _getView, _saxAttributesComments, _saxContent, _saxOtherData, generateMethods inherited from class org.apache.cocoon.generation.ServiceableGenerator
disposeMethods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, setupMethods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandlerMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
-
Field Details
-
_resolver
The ametys object resolver -
_srcResolver
The source resolver -
_organizationChartPageHandler
The organization chart page handler -
_contentHelper
The content helper
-
-
Constructor Details
-
OrgUnitGenerator
public OrgUnitGenerator()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classContentGenerator- Throws:
ServiceException
-
_saxOtherData
Description copied from class:ContentGeneratorSAX any other data needed by the view.Default implementation does nothing.
- Overrides:
_saxOtherDatain classContentGenerator- Parameters:
content- the content.- Throws:
SAXException- if an error occurs while SAXing.ProcessingException- if an error occurs.
-
_saxChildOrgUnits
Sax child orgUnits from the orgUnit content- Parameters:
content- the content- Throws:
SAXException- if an error occurred
-
saxOrgUnit
SAX a orgUnit content- Parameters:
orgUnit- the orgUnit to sax.viewName- the view name- Throws:
SAXException- if an error occurs
-
_saxUsers
Sax users from the orgUnit content- Parameters:
content- the content- Throws:
SAXException- if an error occurred
-
saxUser
SAX a user content- Parameters:
user- the user.role- the user roleviewName- the view name- Throws:
SAXException- if an error occurs
-
saxContent
SAX the HTML content of aContent- Parameters:
content- the contentviewName- the view name- Throws:
SAXException- If an error occurred saxing the contentIOException- If an error occurred resolving the content
-
saxContent
protected void saxContent(Content content, String viewName, String format) throws SAXException, IOException SAX aContentto given format- Parameters:
content- the contentviewName- the view nameformat- the output format- Throws:
SAXException- If an error occurred saxing the contentIOException- If an error occurred resolving the content
-