Class OrgChartGenerator
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.userdirectory.generator.OrgChartGenerator
- All Implemented Interfaces:
DelegatingGenerator.GeneratorDelegate,LogEnabled,Serviceable
public class OrgChartGenerator
extends AbstractLogEnabled
implements DelegatingGenerator.GeneratorDelegate, Serviceable
Generate information to render the organization chart service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate(Map objectModel, String source, Parameters parameters, ContentHandler contentHandler, LexicalHandler lexicalHandler) Perform the SAX generation using the provided Cocoon context.protected voidsaxFirstUserOfOrganizationUnit(Content orgUnit, ContentHandler contentHandler, Parameters parameters) SAX the first user with a role in the organization unit contentprotected voidsaxOrganizationUnit(Content orgUnit, ContentHandler contentHandler, Parameters parameters) SAX an organization unit contentprotected voidsaxOrganizationUnitChildren(Content orgUnit, ContentHandler contentHandler, Parameters parameters) SAX children of an organization unitprotected voidsaxUser(Content user, String role, ContentHandler contentHandler, Parameters parameters) SAX a user contentvoidservice(ServiceManager serviceManager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
OrgChartGenerator
public OrgChartGenerator()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
generate
public void generate(Map objectModel, String source, Parameters parameters, ContentHandler contentHandler, LexicalHandler lexicalHandler) throws IOException, SAXException, ProcessingException Description copied from interface:DelegatingGenerator.GeneratorDelegatePerform the SAX generation using the provided Cocoon context.- Specified by:
generatein interfaceDelegatingGenerator.GeneratorDelegate- Parameters:
objectModel- the Cocoon object model mapsource- the source parameter (may be null)parameters- sitemap parameters passed to the generatorcontentHandler- the SAXContentHandlerlexicalHandler- the SAXLexicalHandler- Throws:
IOException- on IO errorsSAXException- on SAX errors while producing eventsProcessingException- on Cocoon processing errors
-
saxOrganizationUnit
protected void saxOrganizationUnit(Content orgUnit, ContentHandler contentHandler, Parameters parameters) throws SAXException SAX an organization unit content- Parameters:
orgUnit- the organization unit to sax.contentHandler- the SAXContentHandlerparameters- the sitemap parameters- Throws:
SAXException- if an error occurs
-
saxFirstUserOfOrganizationUnit
protected void saxFirstUserOfOrganizationUnit(Content orgUnit, ContentHandler contentHandler, Parameters parameters) throws SAXException SAX the first user with a role in the organization unit content- Parameters:
orgUnit- the organization unitcontentHandler- the SAXContentHandlerparameters- the sitemap parameters- Throws:
SAXException- if an error occurred
-
saxUser
protected void saxUser(Content user, String role, ContentHandler contentHandler, Parameters parameters) throws SAXException SAX a user content- Parameters:
user- the user to sax.role- the user's rolecontentHandler- the SAXContentHandlerparameters- the sitemap parameters- Throws:
SAXException- if an error occurs
-
saxOrganizationUnitChildren
protected void saxOrganizationUnitChildren(Content orgUnit, ContentHandler contentHandler, Parameters parameters) throws SAXException SAX children of an organization unit- Parameters:
orgUnit- the organization unitcontentHandler- the SAXContentHandlerparameters- the sitemap parameters- Throws:
SAXException- if an error occurred
-