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
public class OrgUnitGenerator extends ContentGenerator
OrgUnit Generator
-
-
Field Summary
Fields Modifier and Type Field Description protected OrganisationChartPageHandler
_organizationChartPageHandler
The organization chart page handlerprotected AmetysObjectResolver
_resolver
The ametys object resolverprotected SourceResolver
_srcResolver
The source resolver-
Fields 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
Constructors Constructor Description OrgUnitGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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
_saxUsers(Content content)
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
saxUser(Content user, String role, String viewName)
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 Detail
-
_resolver
protected AmetysObjectResolver _resolver
The ametys object resolver
-
_srcResolver
protected SourceResolver _srcResolver
The source resolver
-
_organizationChartPageHandler
protected OrganisationChartPageHandler _organizationChartPageHandler
The organization chart page handler
-
-
Constructor Detail
-
OrgUnitGenerator
public OrgUnitGenerator()
-
-
Method Detail
-
service
public void service(ServiceManager serviceManager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classContentGenerator
- Throws:
ServiceException
-
_saxOtherData
protected void _saxOtherData(Content content) throws SAXException, ProcessingException
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
protected void _saxChildOrgUnits(Content content) throws SAXException
Sax child orgUnits from the orgUnit content- Parameters:
content
- the content- Throws:
SAXException
- if an error occurred
-
saxOrgUnit
protected void saxOrgUnit(Content orgUnit, String viewName) throws SAXException
SAX a orgUnit content- Parameters:
orgUnit
- the orgUnit to sax.viewName
- the view name- Throws:
SAXException
- if an error occurs
-
_saxUsers
protected void _saxUsers(Content content) throws SAXException
Sax users from the orgUnit content- Parameters:
content
- the content- Throws:
SAXException
- if an error occurred
-
saxUser
protected void saxUser(Content user, String role, String viewName) throws SAXException
SAX a user content- Parameters:
user
- the user.role
- the user roleviewName
- the view name- Throws:
SAXException
- if an error occurs
-
saxContent
protected void saxContent(Content content, String viewName) throws SAXException, IOException
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
-
-