public abstract class AbstractPageMenu extends SimpleMenu
SimpleMenu
SimpleMenu.GalleryGroup, SimpleMenu.GalleryItem, SimpleMenu.UnresolvedItem
ClientSideElement.Script, ClientSideElement.ScriptFile
Modifier and Type | Field and Description |
---|---|
protected AmetysObjectResolver |
_resolver
The Ametys object resolver
|
protected SynchronizeComponent |
_synchronizeComponent
The synchronize helper
|
_galleryItemManager, _galleryItems, _menuItemManager, _menuItems, _primaryMenuItem, _referencedClientSideElement, _ribbonControlManager, _smanager, _unresolvedMenuItems
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
Constructor and Description |
---|
AbstractPageMenu() |
Modifier and Type | Method and Description |
---|---|
protected I18nizableText |
getAllRightPageDescription(Page page)
Get the description when page fills all conditions
|
protected I18nizableText |
getNoModifiablePageDescription(Page page)
Get the description when page is not modifiable
|
protected I18nizableText |
getNoRightPageDescription(Page page)
Get the description when user has no right on page
|
protected Map<String,Object> |
getPageDefaultParameters(Page page)
Get the default page's parameters
|
protected boolean |
hasRight(Page page)
Determines if user has convenient right on page
|
void |
service(ServiceManager smanager) |
_addDependencies, _configureClass, _configureGalleries, _configureGroupGallery, _configureItemsMenu, _getGalleryItems, _getMenuItems, configure, getReferencedClientSideElements, getRights, getScripts
_configureParameters, _configureScript, configureInitialParameters
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, getDependencies, getId, getPluginName, getScripts, hasRight, setPluginInfo, toString
getLogger, setLogger
protected AmetysObjectResolver _resolver
protected SynchronizeComponent _synchronizeComponent
public AbstractPageMenu()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class SimpleMenu
ServiceException
protected Map<String,Object> getPageDefaultParameters(Page page)
page
- The pageprotected boolean hasRight(Page page)
page
- The pageprotected I18nizableText getNoRightPageDescription(Page page)
page
- the pageprotected I18nizableText getNoModifiablePageDescription(Page page)
page
- the pageprotected I18nizableText getAllRightPageDescription(Page page)
page
- the page