public class OrganisationChartPageResolver extends AbstractLogEnabled implements Component, Serviceable
Modifier and Type | Field and Description |
---|---|
protected AmetysObjectResolver |
_ametysResolver
The ametys object resolver.
|
protected OrganisationChartPageHandler |
_pageHandler
The organisation chart page handler
|
static String |
ROLE
The avalon role.
|
Constructor and Description |
---|
OrganisationChartPageResolver() |
Modifier and Type | Method and Description |
---|---|
private String |
_getOrgUnitPath(Content orgUnitContent)
Get the path of a orgUnit content
|
OrgUnitPage |
getOrgUnitPage(Content userContent,
String siteName,
String sitemapName)
Return the orgUnit page
|
OrgUnitPage |
getOrgUnitPage(Page orgUnitRootPage,
Content orgUnitContent)
Return the orgUnit page
|
void |
service(ServiceManager serviceManager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected AmetysObjectResolver _ametysResolver
protected OrganisationChartPageHandler _pageHandler
public OrganisationChartPageResolver()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
ServiceException
public OrgUnitPage getOrgUnitPage(Page orgUnitRootPage, Content orgUnitContent)
orgUnitRootPage
- the orgUnit root pageorgUnitContent
- the orgUnit contentprivate String _getOrgUnitPath(Content orgUnitContent)
orgUnitContent
- The orgUnit contentpublic OrgUnitPage getOrgUnitPage(Content userContent, String siteName, String sitemapName)
userContent
- the orgUnit page contentsiteName
- The current site name.sitemapName
- The current sitemap name.