Package org.ametys.web.clientsideelement
Class AbstractPageMenu
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.ui.StaticFileImportsClientSideElement
org.ametys.core.ui.StaticClientSideElement
org.ametys.core.ui.SimpleMenu
org.ametys.web.clientsideelement.AbstractPageMenu
- All Implemented Interfaces:
ClientSideElement
,MenuClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Serviceable
- Direct Known Subclasses:
ServiceMenu
,TemplatesMenu
Abstract class for a
SimpleMenu
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ametys.core.ui.SimpleMenu
SimpleMenu.GalleryGroup, SimpleMenu.GalleryItem, SimpleMenu.UnresolvedItem
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.SimpleMenu
_galleryItems, _menuItemManager, _menuItems, _primaryMenuItem, _ribbonControlManager, _smanager, _unresolvedMenuItems
Fields 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 the description when page fills all conditionsprotected I18nizableText
getNoModifiablePageDescription
(SitemapElement sitemapElement) Get the description when page is not modifiableprotected I18nizableText
getNoRightPageDescription
(SitemapElement sitemapElement) Get the description when user has no right on pagegetPageDefaultParameters
(SitemapElement sitemapElement) Get the default page's parametersprotected boolean
hasRight
(SitemapElement sitemapElement) Determines if user has convenient right on pagevoid
service
(ServiceManager smanager) Methods inherited from class org.ametys.core.ui.SimpleMenu
_addDependencies, _configureClass, _configureGalleries, _configureGroupGallery, _configureItemsMenu, _getGalleryItemManager, _getGalleryItems, _getGalleryItems, _getMenuItems, _initializeGalleryItemManager, configure, getReferencedClientSideElements, getRights, getScripts
Methods inherited from class org.ametys.core.ui.StaticClientSideElement
_configureParameters, _configureScript, configureInitialParameters
Methods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, getDependencies, getId, getPluginName, 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
-
AbstractPageMenu
public AbstractPageMenu()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classSimpleMenu
- Throws:
ServiceException
-
getPageDefaultParameters
Get the default page's parameters- Parameters:
sitemapElement
- The page- Returns:
- The default parameters
-
hasRight
Determines if user has convenient right on page- Parameters:
sitemapElement
- The page- Returns:
- true if the user has convenient right
-
getNoRightPageDescription
Get the description when user has no right on page- Parameters:
sitemapElement
- the page- Returns:
- the description
-
getNoModifiablePageDescription
Get the description when page is not modifiable- Parameters:
sitemapElement
- the page- Returns:
- the description
-
getAllRightPageDescription
Get the description when page fills all conditions- Parameters:
page
- the page- Returns:
- the description
-