public class OrganisationChartPageHandler extends AbstractLogEnabled implements Component, Serviceable
| Modifier and Type | Field and Description |
|---|---|
protected AmetysObjectResolver |
_resolver
The ametys object resolver.
|
static String |
CHILD_ORGUNIT_ATTRIBUTE_NAME
The orgUnit child attribute name
|
static String |
ORGUNIT_CONTENT_TYPE
The orgUnit content type
|
static String |
ORGUNIT_USER_ATTRIBUTE_NAME
The attribute name for orgUnit user in repeater
|
static String |
ORGUNIT_USER_ROLE_ATTRIBUTE_NAME
The attribute name for orgUnit user role in repeater
|
static String |
ORGUNIT_USERS_ATTRIBUTE_NAME
The attribute name for orgUnit users repeater
|
static String |
PARENT_ORGUNIT_ATTRIBUTE_NAME
The orgUnit parent attribute name
|
static String |
ROLE
The avalon role.
|
| Constructor and Description |
|---|
OrganisationChartPageHandler() |
| Modifier and Type | Method and Description |
|---|---|
List<Content> |
getChildContents(Content parentContent)
Get child orgUnit contents from parentContent
|
Content |
getChildFromPath(Content parentContent,
String path)
Get the child content.
|
AmetysObjectIterable<Content> |
getContentsForRootPage(Page rootPage)
Get orgUnit contents from rootPage
|
AmetysObjectIterable<Content> |
getFirstLevelOfContents(String lang)
Get orgUnit contents
|
Page |
getOrganisationChartRootPages(String siteName,
String sitemapName)
Get the organization chart root page.
|
Content |
getParentContent(Content childContent)
Get parent orgUnit content from childContent
|
List<Content> |
getUserContents(Content content)
Get users contents from content
|
boolean |
isOrganisationChartRootPage(JCRAmetysObject jcrPage)
True if the page is the organization chart root page
|
void |
service(ServiceManager manager) |
getLogger, setLoggerpublic static final String ORGUNIT_CONTENT_TYPE
public static final String PARENT_ORGUNIT_ATTRIBUTE_NAME
public static final String CHILD_ORGUNIT_ATTRIBUTE_NAME
public static final String ORGUNIT_USERS_ATTRIBUTE_NAME
public static final String ORGUNIT_USER_ATTRIBUTE_NAME
public static final String ORGUNIT_USER_ROLE_ATTRIBUTE_NAME
protected AmetysObjectResolver _resolver
public OrganisationChartPageHandler()
public void service(ServiceManager manager) throws ServiceException
service in interface ServiceableServiceExceptionpublic AmetysObjectIterable<Content> getContentsForRootPage(Page rootPage)
rootPage - the root pagepublic AmetysObjectIterable<Content> getFirstLevelOfContents(String lang)
lang - the languagepublic boolean isOrganisationChartRootPage(JCRAmetysObject jcrPage)
jcrPage - the pagepublic List<Content> getChildContents(Content parentContent)
parentContent - the parent contentpublic Content getParentContent(Content childContent)
childContent - the child contentpublic List<Content> getUserContents(Content content)
content - the contentpublic Content getChildFromPath(Content parentContent, String path)
parentContent - the parent contentpath - the path from the parent contentpublic Page getOrganisationChartRootPages(String siteName, String sitemapName) throws AmetysRepositoryException
siteName - the current site.sitemapName - the sitemap name.AmetysRepositoryException - if an error occurred.