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
public abstract class AbstractPageMenu extends SimpleMenu
Abstract class for aSimpleMenu
-
-
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
Fields Modifier and Type Field Description protected AmetysObjectResolver
_resolver
The Ametys object resolverprotected SynchronizeComponent
_synchronizeComponent
The synchronize helper-
Fields 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
Constructors Constructor Description AbstractPageMenu()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected I18nizableText
getAllRightPageDescription(Page page)
Get the description when page fills all conditionsprotected I18nizableText
getNoModifiablePageDescription(Page page)
Get the description when page is not modifiableprotected I18nizableText
getNoRightPageDescription(Page page)
Get the description when user has no right on pageprotected Map<String,Object>
getPageDefaultParameters(Page page)
Get the default page's parametersprotected boolean
hasRight(Page page)
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, 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 Detail
-
_resolver
protected AmetysObjectResolver _resolver
The Ametys object resolver
-
_synchronizeComponent
protected SynchronizeComponent _synchronizeComponent
The synchronize helper
-
-
Constructor Detail
-
AbstractPageMenu
public AbstractPageMenu()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classSimpleMenu
- Throws:
ServiceException
-
getPageDefaultParameters
protected Map<String,Object> getPageDefaultParameters(Page page)
Get the default page's parameters- Parameters:
page
- The page- Returns:
- The default parameters
-
hasRight
protected boolean hasRight(Page page)
Determines if user has convenient right on page- Parameters:
page
- The page- Returns:
- true if the user has convenient right
-
getNoRightPageDescription
protected I18nizableText getNoRightPageDescription(Page page)
Get the description when user has no right on page- Parameters:
page
- the page- Returns:
- the description
-
getNoModifiablePageDescription
protected I18nizableText getNoModifiablePageDescription(Page page)
Get the description when page is not modifiable- Parameters:
page
- the page- Returns:
- the description
-
getAllRightPageDescription
protected I18nizableText getAllRightPageDescription(Page page)
Get the description when page fills all conditions- Parameters:
page
- the page- Returns:
- the description
-
-