Class OrganisationChartPageResolver
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.plugins.userdirectory.page.OrganisationChartPageResolver
- All Implemented Interfaces:
Component,LogEnabled,Serviceable
public class OrganisationChartPageResolver
extends AbstractLogEnabled
implements Component, Serviceable
Resolves an organisation chart page path from the associated orgUnit content.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AmetysObjectResolverThe ametys object resolver.protected OrganisationChartPageHandlerThe organisation chart page handlerstatic final StringThe avalon role. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetOrgUnitPage(Content userContent, String siteName, String sitemapName) Return the orgUnit pagegetOrgUnitPage(Page orgUnitRootPage, Content orgUnitContent) Return the orgUnit pagevoidservice(ServiceManager serviceManager) Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
ROLE
The avalon role. -
_ametysResolver
The ametys object resolver. -
_pageHandler
The organisation chart page handler
-
-
Constructor Details
-
OrganisationChartPageResolver
public OrganisationChartPageResolver()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
getOrgUnitPage
Return the orgUnit page- Parameters:
orgUnitRootPage- the orgUnit root pageorgUnitContent- the orgUnit content- Returns:
- the orgUnit page or null
-
getOrgUnitPage
Return the orgUnit page- Parameters:
userContent- the orgUnit page contentsiteName- The current site name.sitemapName- The current sitemap name.- Returns:
- the orgUnit page or null
-