Package org.ametys.web.clientsideelement
Class AbstractPagesContainerClientSideElement
- 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.web.clientsideelement.AbstractPagesContainerClientSideElement
-
- All Implemented Interfaces:
ClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Serviceable
- Direct Known Subclasses:
PageRobotsClientSideElement
public abstract class AbstractPagesContainerClientSideElement extends AbstractPageClientSideElement
Abstract client side element for pages or sitemap.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
-
-
Field Summary
Fields Modifier and Type Field Description private LanguagesManager
_languageManager
-
Fields 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
Constructors Constructor Description AbstractPagesContainerClientSideElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected I18nizableText
getAllRightPagesContainerDescription(PagesContainer pagesContainer)
Get i18n description for all right pages containerprotected I18nizableText
getAllRightSitemapDescription(Sitemap sitemap)
Get i18n description for all right sitemapprotected I18nizableText
getNoRightPagesContainerDescription(PagesContainer pagesContainer)
Get the description when user has no right on pages containerprotected I18nizableText
getNoRightSitemapDescription(Sitemap sitemap)
Get the description when user has no right on sitemapprotected Map<String,Object>
getPagesContainerDefaultParameters(PagesContainer pagesContainer)
Get the default pages container's parametersprotected Map<String,Object>
getSitemapDefaultParameters(Sitemap sitemap)
Get the default sitemap's parametersprotected I18nizableText
getSitemapTitle(Sitemap sitemap)
Get the sitemap's titleprotected boolean
hasRight(PagesContainer pagesContainer)
Determines if user has convenient right on pages containerprotected boolean
hasRight(Sitemap sitemap)
Determines if user has convenient right on sitemapvoid
service(ServiceManager smanager)
-
Methods 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 Detail
-
_languageManager
private LanguagesManager _languageManager
-
-
Constructor Detail
-
AbstractPagesContainerClientSideElement
public AbstractPagesContainerClientSideElement()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractPageClientSideElement
- Throws:
ServiceException
-
getPagesContainerDefaultParameters
protected Map<String,Object> getPagesContainerDefaultParameters(PagesContainer pagesContainer)
Get the default pages container's parameters- Parameters:
pagesContainer
- The page or sitemap- Returns:
- The default parameters
-
getSitemapDefaultParameters
protected Map<String,Object> getSitemapDefaultParameters(Sitemap sitemap)
Get the default sitemap's parameters- Parameters:
sitemap
- The sitemap- Returns:
- The default parameters
-
getSitemapTitle
protected I18nizableText getSitemapTitle(Sitemap sitemap)
Get the sitemap's title- Parameters:
sitemap
- the sitemap- Returns:
- the sitemap's title
-
hasRight
protected boolean hasRight(PagesContainer pagesContainer)
Determines if user has convenient right on pages container- Parameters:
pagesContainer
- The page or sitemap- Returns:
- true if the user has convenient right
-
hasRight
protected boolean hasRight(Sitemap sitemap)
Determines if user has convenient right on sitemap- Parameters:
sitemap
- The sitemap- Returns:
- true if the user has convenient right
-
getNoRightPagesContainerDescription
protected I18nizableText getNoRightPagesContainerDescription(PagesContainer pagesContainer)
Get the description when user has no right on pages container- Parameters:
pagesContainer
- The page or sitemap- Returns:
- the description
-
getNoRightSitemapDescription
protected I18nizableText getNoRightSitemapDescription(Sitemap sitemap)
Get the description when user has no right on sitemap- Parameters:
sitemap
- The sitemap- Returns:
- the description
-
getAllRightPagesContainerDescription
protected I18nizableText getAllRightPagesContainerDescription(PagesContainer pagesContainer)
Get i18n description for all right pages container- Parameters:
pagesContainer
- The page or sitemap- Returns:
- The
I18nizableText
description
-
getAllRightSitemapDescription
protected I18nizableText getAllRightSitemapDescription(Sitemap sitemap)
Get i18n description for all right sitemap- Parameters:
sitemap
- The sitemap- Returns:
- The
I18nizableText
description
-
-