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_organizationChartPageHandlerThe organization chart page handlerprotected AmetysObjectResolver_resolverThe ametys object resolverprotected SourceResolver_srcResolverThe 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 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 voidsaxUser(Content user, String role, String viewName)SAX a user contentvoidservice(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:
servicein interfaceServiceable- Overrides:
servicein classContentGenerator- Throws:
ServiceException
-
_saxOtherData
protected void _saxOtherData(Content content) throws SAXException, ProcessingException
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
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 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
-
-