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
Modifier and TypeFieldDescriptionprotected ContentHelper
The content helperprotected OrganisationChartPageHandler
The organization chart page handlerprotected AmetysObjectResolver
The ametys object resolverprotected SourceResolver
The source resolverFields inherited from class org.ametys.cms.content.ContentGenerator
_contentSaxer, _contentTypeExtensionPoint, _cTypesHelper, _DC_DATE_FORMAT
Fields inherited from class org.apache.cocoon.generation.ServiceableGenerator
manager
Fields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, source
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
-
Constructor Summary
-
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 void
Sax users from the orgUnit contentprotected void
saxContent
(Content content, String viewName) SAX the HTML content of aContent
protected void
saxContent
(Content content, String viewName, String format) SAX aContent
to given formatprotected void
saxOrgUnit
(Content orgUnit, String viewName) SAX a orgUnit contentprotected void
SAX a user contentvoid
service
(ServiceManager serviceManager) Methods inherited from class org.ametys.web.content.ContentGenerator
getDefaultLocale
Methods inherited from class org.ametys.cms.content.ContentGenerator
_generateContent, _getView, _saxAttributesComments, _saxContent, _saxOtherData, generate
Methods inherited from class org.apache.cocoon.generation.ServiceableGenerator
dispose
Methods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, setup
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandler
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
service
in interfaceServiceable
- Overrides:
service
in classContentGenerator
- Throws:
ServiceException
-
_saxOtherData
Description copied from class:ContentGenerator
SAX any other data needed by the view.Default implementation does nothing.
- Overrides:
_saxOtherData
in 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 aContent
to 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
-