public class SetOrganisationChartRootClientSideElement extends AbstractPageClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
Modifier and Type | Field and Description |
---|---|
protected ObservationManager |
_observationManager
Observer manager.
|
protected OrganisationChartPageHandler |
_pageHandler
The organisation chart page handler
|
_resolver, _synchronizeComponent
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
Constructor and Description |
---|
SetOrganisationChartRootClientSideElement() |
Modifier and Type | Method and Description |
---|---|
private void |
_addOrganisationChartRootProperty(Page page) |
private void |
_notifyPageUpdated(Page page) |
private void |
_removeUserDirectoryRootProperty(Page page) |
Map<String,Object> |
getStatus(String pageId)
Gets the status of the given page
|
Map<String,Object> |
removeOrganisationChartRoot(String pageId)
Remove the organisation chart root status to the given page
|
void |
service(ServiceManager smanager) |
Map<String,Object> |
setOrganisationChartRoot(String pageId)
Sets the given page as the root of a organisation chart
|
getAllRightPageDescription, getNoModifiablePageDescription, getNoRightPageDescription, getPageDefaultParameters, hasRight
_configureClass, _configureParameters, _configureScript, configureInitialParameters
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toString
getLogger, setLogger
protected ObservationManager _observationManager
protected OrganisationChartPageHandler _pageHandler
public SetOrganisationChartRootClientSideElement()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class AbstractPageClientSideElement
ServiceException
public Map<String,Object> getStatus(String pageId)
pageId
- The page idpublic Map<String,Object> setOrganisationChartRoot(String pageId) throws RepositoryException
pageId
- The id of the pageRepositoryException
- if a repository error occuredpublic Map<String,Object> removeOrganisationChartRoot(String pageId) throws RepositoryException
pageId
- The id of the pageRepositoryException
- if a repository error occuredprivate void _addOrganisationChartRootProperty(Page page) throws RepositoryException
RepositoryException
private void _removeUserDirectoryRootProperty(Page page) throws RepositoryException
RepositoryException
private void _notifyPageUpdated(Page page)