public class OrgChartGenerator extends ServiceableGenerator
Modifier and Type | Field and Description |
---|---|
private static String |
__METADATA_SET_NAME |
private OrganisationChartPageHandler |
_organizationChartPageHandler |
private AmetysObjectResolver |
_resolver |
private SourceResolver |
_sourceResolver |
manager
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
OrgChartGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
generate() |
protected void |
saxFirstUserOfOrganizationUnit(Content orgUnit)
SAX the first user with a role in the organization unit content
|
protected void |
saxOrganizationUnit(Content orgUnit)
SAX an organization unit content
|
protected void |
saxOrganizationUnitChildren(Content orgUnit)
SAX children of an organization unit
|
protected void |
saxUser(Content user,
String role)
SAX a user content
|
void |
service(ServiceManager serviceManager) |
dispose
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
private static final String __METADATA_SET_NAME
private OrganisationChartPageHandler _organizationChartPageHandler
private AmetysObjectResolver _resolver
private SourceResolver _sourceResolver
public OrgChartGenerator()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableGenerator
ServiceException
public void generate() throws IOException, SAXException, ProcessingException
protected void saxOrganizationUnit(Content orgUnit) throws SAXException
orgUnit
- the organization unit to sax.SAXException
- if an error occursprotected void saxFirstUserOfOrganizationUnit(Content orgUnit) throws SAXException
orgUnit
- the organization unitSAXException
- if an error occurredprotected void saxUser(Content user, String role) throws SAXException
user
- the user to sax.role
- the user's roleSAXException
- if an error occursprotected void saxOrganizationUnitChildren(Content orgUnit) throws SAXException
orgUnit
- the organization unitSAXException
- if an error occurred