public class SetUserDirectoryRootClientSideElement extends AbstractPageClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
Modifier and Type | Field and Description |
---|---|
protected ContentTypeExtensionPoint |
_contentTypeEP
The extension point for content types
|
protected ObservationManager |
_observationManager
Observer manager.
|
protected UserDirectoryPageHandler |
_userDirectoryPageHandler
The User Directory page handler
|
_resolver, _synchronizeComponent
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
Constructor and Description |
---|
SetUserDirectoryRootClientSideElement() |
Modifier and Type | Method and Description |
---|---|
private void |
_addUserDirectoryRootProperty(Page page,
String contentType,
String metadata,
int depth) |
private boolean |
_isUserDirectoryRootPage(JCRAmetysObject jcrPage) |
private void |
_notifyPageUpdated(Page page) |
private void |
_removeUserDirectoryRootProperty(Page page) |
private void |
_updateUserDirectoryRootProperty(Page page,
String contentType,
String metadata,
int depth) |
Map<String,Object> |
getRootPageInfo(String pageId)
Gets information about user directory root status on the given.
|
Map<String,Object> |
getStatus(String pageId)
Gets the status of the given page
|
List<Map<String,Object>> |
getSupportedContentTypes(String pageId)
Gets the content types which can build a user directory
|
Map<String,Object> |
removeUserDirectoryRoot(String pageId)
Remove the user directory root status to the given page
|
void |
service(ServiceManager smanager) |
Map<String,Object> |
setUserDirectoryRoot(String pageId,
String contentType,
String metadata,
int depth)
Sets the given page as the root of a user directory
|
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 ContentTypeExtensionPoint _contentTypeEP
protected UserDirectoryPageHandler _userDirectoryPageHandler
public SetUserDirectoryRootClientSideElement()
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 idprivate boolean _isUserDirectoryRootPage(JCRAmetysObject jcrPage)
public List<Map<String,Object>> getSupportedContentTypes(String pageId)
pageId
- The id of the page being editedpublic Map<String,Object> setUserDirectoryRoot(String pageId, String contentType, String metadata, int depth) throws RepositoryException
pageId
- The id of the pagecontentType
- The id of the content typemetadata
- Thedepth
- The depth of the tree structureRepositoryException
- if a repository error occuredpublic Map<String,Object> removeUserDirectoryRoot(String pageId) throws RepositoryException
pageId
- The id of the pageRepositoryException
- if a repository error occuredpublic Map<String,Object> getRootPageInfo(String pageId)
pageId
- The id of the pageprivate void _addUserDirectoryRootProperty(Page page, String contentType, String metadata, int depth) throws RepositoryException
RepositoryException
private void _updateUserDirectoryRootProperty(Page page, String contentType, String metadata, int depth)
private void _removeUserDirectoryRootProperty(Page page) throws RepositoryException
RepositoryException
private void _notifyPageUpdated(Page page)