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 AmetysObjectResolver
_resolver
The ametys object resolverprotected SourceResolver
_srcResolver
The source resolver-
Fields inherited from class org.ametys.cms.content.ContentGenerator
_contentHelper, _contentTypeExtensionPoint, _cTypesHelper, _DC_DATE_FORMAT, _languageManager, _metadataManager, _userHelper, _userProvider, _workflowProvider, _worklflowHelper
-
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 metadataSetName)
SAX the HTML content of aContent
protected void
saxContent(Content content, String metadataSetName, String format)
SAX aContent
to given formatprotected void
saxOrgUnit(String orgUnitId, String metadataSetName)
SAX a orgUnit contentprotected void
saxUser(String userId, String role, String metadataSetName)
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
_addAttributeIfNotNull, _generateContent, _getCurrentStep, _getMetadataSet, _saxComment, _saxComments, _saxContent, _saxContentComments, _saxContentReactions, _saxDublinCoreMetadata, _saxIfNotNull, _saxIfNotNull, _saxIfNotNull, _saxLanguage, _saxMetadata, _saxMetadataComments, _saxOtherData, _saxWorkflowStep, 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
-
-
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(String orgUnitId, String metadataSetName) throws SAXException
SAX a orgUnit content- Parameters:
orgUnitId
- the orgUnit id.metadataSetName
- the metadata set 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(String userId, String role, String metadataSetName) throws SAXException
SAX a user content- Parameters:
userId
- the user id.role
- the user rolemetadataSetName
- the metadata set name- Throws:
SAXException
- if an error occurs
-
saxContent
protected void saxContent(Content content, String metadataSetName) throws SAXException, IOException
SAX the HTML content of aContent
- Parameters:
content
- the contentmetadataSetName
- the metadata set name- Throws:
SAXException
- If an error occurred saxing the contentIOException
- If an error occurred resolving the content
-
saxContent
protected void saxContent(Content content, String metadataSetName, String format) throws SAXException, IOException
SAX aContent
to given format- Parameters:
content
- the contentmetadataSetName
- the metadata set nameformat
- the output format- Throws:
SAXException
- If an error occurred saxing the contentIOException
- If an error occurred resolving the content
-
-