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
FieldsModifier and TypeFieldDescriptionprotected AmetysObjectResolverThe Ametys object resolverprotected SynchronizeComponentThe synchronize helperFields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected I18nizableTextGet i18n description for all right pageprotected I18nizableTextGet the description when page is not modifiableprotected I18nizableTextGet the description when user has no right on pagegetPageDefaultParameters(Page page) Get the default page's parametersprotected booleanhasRight(SitemapElement sitemapElement) Determines if user has convenient right on sitemap elementvoidservice(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
The Ametys object resolver -
_synchronizeComponent
The synchronize helper
-
-
Constructor Details
-
AbstractPageClientSideElement
public AbstractPageClientSideElement()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein 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
I18nizableTextdescription
-