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
Fields Modifier and Type Field Description protected AmetysObjectResolver
_ametysResolver
The ametys object resolver.protected OrganisationChartPageHandler
_pageHandler
The organisation chart page handlerstatic String
ROLE
The avalon role.
-
Constructor Summary
Constructors Constructor Description OrganisationChartPageResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private String
_getOrgUnitPath(Content orgUnitContent)
Get the path of a orgUnit contentOrgUnitPage
getOrgUnitPage(Content userContent, String siteName, String sitemapName)
Return the orgUnit pageOrgUnitPage
getOrgUnitPage(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 Detail
-
_ametysResolver
protected AmetysObjectResolver _ametysResolver
The ametys object resolver.
-
_pageHandler
protected OrganisationChartPageHandler _pageHandler
The organisation chart page handler
-
-
Constructor Detail
-
OrganisationChartPageResolver
public OrganisationChartPageResolver()
-
-
Method Detail
-
service
public void service(ServiceManager serviceManager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getOrgUnitPage
public OrgUnitPage getOrgUnitPage(Page orgUnitRootPage, Content orgUnitContent)
Return the orgUnit page- Parameters:
orgUnitRootPage
- the orgUnit root pageorgUnitContent
- the orgUnit content- Returns:
- the orgUnit page or null
-
_getOrgUnitPath
private String _getOrgUnitPath(Content orgUnitContent)
Get the path of a orgUnit content- Parameters:
orgUnitContent
- The orgUnit content- Returns:
- The path
-
getOrgUnitPage
public OrgUnitPage getOrgUnitPage(Content userContent, String siteName, String sitemapName)
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
-
-