Class ODFRootClientSideElement
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.ui.StaticFileImportsClientSideElement
org.ametys.core.ui.StaticClientSideElement
org.ametys.plugins.odfweb.clientside.ODFRootClientSideElement
- All Implemented Interfaces:
 ClientSideElement,LogEnabled,PluginAware,Configurable,Serviceable
This element creates an action button to set the ODF 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 CatalogsManagerCatalog managerprotected ObservationManagerObservation managerprotected OdfPageHandlerOdf page handlerprotected AmetysObjectResolverAmetys resolverFields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanaddOrUpdateOdfRootProperty(String pageId, String catalog, String firstLevel, String secondLevel) Add or update the odf root page property on a pagegetOdfRootPageInfo(String pageId) Retrieves odf root page propertiesGet odf root page status for the current pagebooleanremoveOdfRootPage(String pageId) Remove the odf root page property on a pagevoidservice(ServiceManager smanager) Methods 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
- 
_resolver
Ametys resolver - 
_catalogsManager
Catalog manager - 
_odfPageHandler
Odf page handler - 
_observationManager
Observation manager 
 - 
 - 
Constructor Details
- 
ODFRootClientSideElement
public ODFRootClientSideElement() 
 - 
 - 
Method Details
- 
service
- Specified by:
 servicein interfaceServiceable- Overrides:
 servicein classStaticFileImportsClientSideElement- Throws:
 ServiceException
 - 
getStatus
Get odf root page status for the current page- Parameters:
 pageId- the page identifier- Returns:
 - A map representing its status
 
 - 
getOdfRootPageInfo
Retrieves odf root page properties- Parameters:
 pageId- page identifier- Returns:
 - the map of properties
 
 - 
addOrUpdateOdfRootProperty
public boolean addOrUpdateOdfRootProperty(String pageId, String catalog, String firstLevel, String secondLevel) throws javax.jcr.RepositoryException Add or update the odf root page property on a page- Parameters:
 pageId- the page identifiercatalog- the catalog to setfirstLevel- the first level to setsecondLevel- the second level to set- Returns:
 - true if the page has actually been modified
 - Throws:
 javax.jcr.RepositoryException- if a repository error occurs
 - 
removeOdfRootPage
Remove the odf root page property on a page- Parameters:
 pageId- the page identifier- Returns:
 - true if the property has actually been removed
 - Throws:
 javax.jcr.RepositoryException- if a repository error occurs
 
 -