Class SetUGCRootClientSideElement
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.ugc.clientsideelement.SetUGCRootClientSideElement
- All Implemented Interfaces:
ClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Serviceable
Client side element for a controller which set/remove the root page of a ugc.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
-
Field Summary
Modifier and TypeFieldDescriptionprotected ContentTypeExtensionPoint
The extension point for content typesprotected ObservationManager
Observer manager.protected UGCPageHandler
The UGC page handlerFields inherited from class org.ametys.web.clientsideelement.AbstractPageClientSideElement
_resolver, _synchronizeComponent
Fields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetRootPageInfo
(String pageId) Gets information about ugc root status on the given.Gets the status of the given pageremoveUGCRoot
(String pageId) Remove the ugc root status to the given pagevoid
service
(ServiceManager smanager) setUGCRoot
(String pageId, String contentTypeId, String attributePath, boolean classificationPageVisible) Sets the given page as the root of a ugcMethods inherited from class org.ametys.web.clientsideelement.AbstractPageClientSideElement
getAllRightPageDescription, getNoModifiablePageDescription, getNoRightPageDescription, getPageDefaultParameters, hasRight
Methods inherited from class org.ametys.core.ui.StaticClientSideElement
_configureClass, _configureParameters, _configureScript, configureInitialParameters
Methods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toString
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_observationManager
Observer manager. -
_contentTypeEP
The extension point for content types -
_ugcPageHandler
The UGC page handler
-
-
Constructor Details
-
SetUGCRootClientSideElement
public SetUGCRootClientSideElement()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractPageClientSideElement
- Throws:
ServiceException
-
getStatus
Gets the status of the given page- Parameters:
pageId
- The page id- Returns:
- the status of the given page
-
setUGCRoot
public Map<String,Object> setUGCRoot(String pageId, String contentTypeId, String attributePath, boolean classificationPageVisible) throws javax.jcr.RepositoryException Sets the given page as the root of a ugc- Parameters:
pageId
- The id of the pagecontentTypeId
- The id of the content typeattributePath
- The classification attribute pathclassificationPageVisible
- the visibility of transitional pages- Returns:
- A result map
- Throws:
javax.jcr.RepositoryException
- if a repository error occurred
-
removeUGCRoot
Remove the ugc 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
-
getRootPageInfo
Gets information about ugc root status on the given.- Parameters:
pageId
- The id of the page- Returns:
- information about ugc root status on the given.
-