Package org.ametys.web.clientsideelement
Class AbstractPageClientSideElement
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.ui.StaticFileImportsClientSideElement
org.ametys.core.ui.StaticClientSideElement
org.ametys.web.clientsideelement.AbstractPageClientSideElement
- All Implemented Interfaces:
ClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Serviceable
- Direct Known Subclasses:
AbstractSitemapElementClientSideElement
,ConfigureServiceClientSideElement
,DeletePageClientSideElement
,LivePageClientSideElement
,ScheduledPageClientSideElement
,SetOrganisationChartRootClientSideElement
,SetUGCRootClientSideElement
,SetUserDirectoryRootClientSideElement
Abstract client side element for pages.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
-
Field Summary
Modifier and TypeFieldDescriptionprotected AmetysObjectResolver
The Ametys object resolverprotected SynchronizeComponent
The synchronize helperFields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected I18nizableText
Get i18n description for all right pageprotected I18nizableText
Get the description when page is not modifiableprotected I18nizableText
Get the description when user has no right on pagegetPageDefaultParameters
(Page page) Get the default page's parametersprotected boolean
hasRight
(SitemapElement sitemapElement) Determines if user has convenient right on sitemap elementvoid
service
(ServiceManager smanager) 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
-
_resolver
The Ametys object resolver -
_synchronizeComponent
The synchronize helper
-
-
Constructor Details
-
AbstractPageClientSideElement
public AbstractPageClientSideElement()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classStaticFileImportsClientSideElement
- Throws:
ServiceException
-
getPageDefaultParameters
Get the default page's parameters- Parameters:
page
- The page- Returns:
- The default parameters
-
hasRight
Determines if user has convenient right on sitemap element- Parameters:
sitemapElement
- The page or sitemap- Returns:
- true if the user has convenient right
-
getNoRightPageDescription
Get the description when user has no right on page- Parameters:
page
- the page- Returns:
- the description
-
getNoModifiablePageDescription
Get the description when page is not modifiable- Parameters:
page
- the page- Returns:
- the description
-
getAllRightPageDescription
Get i18n description for all right page- Parameters:
page
- The page- Returns:
- The
I18nizableText
description
-