Class SetOrganisationChartRootClientSideElement
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.ui.StaticFileImportsClientSideElement
org.ametys.core.ui.StaticClientSideElement
org.ametys.web.clientsideelement.AbstractPageClientSideElement
org.ametys.plugins.userdirectory.clientsideelement.SetOrganisationChartRootClientSideElement
- All Implemented Interfaces:
ClientSideElement,LogEnabled,PluginAware,Configurable,Serviceable
Client side element for a controller wich set/remove the organisation chart root page
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentTypeExtensionPointThe extension point for content typesprotected ObservationManagerObserver manager.protected OrganisationChartPageHandlerThe organization chart page handlerprotected OrganisationChartPageHandlerThe organisation chart page handlerFields inherited from class org.ametys.web.clientsideelement.AbstractPageClientSideElement
_resolver, _synchronizeComponentFields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRootPageInfo(String pageId) Gets information about organisation chart root status on the given.Gets the status of the given pagegetSupportedContentTypes(String pageId) Gets the content types which can build an organisation chartremoveOrganisationChartRoot(String pageId) Remove the organization chart root status to the given pagevoidservice(ServiceManager smanager) setOrganisationChartRoot(String pageId, String contentType, boolean pageVisible) Sets the given page as the root of a organization chartMethods inherited from class org.ametys.web.clientsideelement.AbstractPageClientSideElement
getAllRightPageDescription, getNoModifiablePageDescription, getNoRightPageDescription, getPageDefaultParameters, hasRightMethods inherited from class org.ametys.core.ui.StaticClientSideElement
_configureClass, _configureParameters, _configureScript, configureInitialParametersMethods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toStringMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_observationManager
Observer manager. -
_pageHandler
The organisation chart page handler -
_contentTypeEP
The extension point for content types -
_orgUnitPageHandler
The organization chart page handler
-
-
Constructor Details
-
SetOrganisationChartRootClientSideElement
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classAbstractPageClientSideElement- Throws:
ServiceException
-
getStatus
Gets the status of the given page- Parameters:
pageId- The page id- Returns:
- the status of the given page
-
setOrganisationChartRoot
public Map<String,Object> setOrganisationChartRoot(String pageId, String contentType, boolean pageVisible) throws javax.jcr.RepositoryException Sets the given page as the root of a organization chart- Parameters:
pageId- The id of the pagecontentType- The id of the content typepageVisible- true to make the organization page visible- Returns:
- A result map
- Throws:
javax.jcr.RepositoryException- if a repository error occurred
-
removeOrganisationChartRoot
public Map<String,Object> removeOrganisationChartRoot(String pageId) throws javax.jcr.RepositoryException Remove the organization chart root status to the given page- Parameters:
pageId- The id of the page- Returns:
- A result map
- Throws:
javax.jcr.RepositoryException- if a repository error occurred
-
getSupportedContentTypes
Gets the content types which can build an organisation chart- Parameters:
pageId- The id of the page being edited- Returns:
- the content types which can build an organisation chart
-
getRootPageInfo
Gets information about organisation chart root status on the given.- Parameters:
pageId- The id of the page- Returns:
- information about organisation chart root status on the given.
-