Class SetUserDirectoryRootClientSideElement
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.SetUserDirectoryRootClientSideElement
- All Implemented Interfaces:
- ClientSideElement,- LogEnabled,- PluginAware,- Configurable,- Serviceable
Client side element for a controller wich set/remove the root page of a user directory.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElementClientSideElement.Script, ClientSideElement.ScriptFile
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected ContentTypeExtensionPointThe extension point for content typesprotected ObservationManagerObserver manager.protected UserDirectoryPageHandlerThe User Directory 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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetRootPageInfo(String pageId) Gets information about user directory root status on the given.Gets the status of the given pagegetSupportedContentTypes(String pageId) Gets the content types which can build a user directoryremoveUserDirectoryRoot(String pageId) Remove the user directory root status to the given pagevoidservice(ServiceManager smanager) setUserDirectoryRoot(String pageId, String contentType, String viewName, String attribute, int depth) Sets the given page as the root of a user directoryMethods inherited from class org.ametys.web.clientsideelement.AbstractPageClientSideElementgetAllRightPageDescription, 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.AbstractLogEnabledgetLogger, setLogger
- 
Field Details- 
_observationManagerObserver manager.
- 
_contentTypeEPThe extension point for content types
- 
_userDirectoryPageHandlerThe User Directory page handler
 
- 
- 
Constructor Details- 
SetUserDirectoryRootClientSideElement
 
- 
- 
Method Details- 
service- Specified by:
- servicein interface- Serviceable
- Overrides:
- servicein class- AbstractPageClientSideElement
- Throws:
- ServiceException
 
- 
getStatusGets the status of the given page- Parameters:
- pageId- The page id
- Returns:
- the status of the given page
 
- 
getSupportedContentTypesGets the content types which can build a user directory- Parameters:
- pageId- The id of the page being edited
- Returns:
- the content types which can build a user directory
 
- 
setUserDirectoryRootpublic Map<String,Object> setUserDirectoryRoot(String pageId, String contentType, String viewName, String attribute, int depth) throws javax.jcr.RepositoryException Sets the given page as the root of a user directory- Parameters:
- pageId- The id of the page
- contentType- The id of the content type
- viewName- The view name for users rendering
- attribute- The classification attribute
- depth- The depth of the tree structure
- Returns:
- A result map
- Throws:
- javax.jcr.RepositoryException- if a repository error occurred
 
- 
removeUserDirectoryRootpublic Map<String,Object> removeUserDirectoryRoot(String pageId) throws javax.jcr.RepositoryException Remove the user directory 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 occured
 
- 
getRootPageInfoGets information about user directory root status on the given.- Parameters:
- pageId- The id of the page
- Returns:
- information about user directory root status on the given.
 
 
-