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
Modifier and TypeFieldDescriptionprotected AmetysObjectResolver
The ametys object resolver.protected OrganisationChartPageHandler
The organisation chart page handlerstatic final String
The avalon role. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetOrgUnitPage
(Content userContent, String siteName, String sitemapName) Return the orgUnit pagegetOrgUnitPage
(Page orgUnitRootPage, Content orgUnitContent) Return the orgUnit pagevoid
service
(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:
service
in 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
-