public class ModelsMenu extends SimpleMenu
StaticClientSideElement for models menuSimpleMenu.GalleryGroup, SimpleMenu.GalleryItem, SimpleMenu.UnresolvedItemClientSideElement.Script, ClientSideElement.ScriptFile| Modifier and Type | Field and Description |
|---|---|
private I18nUtils |
_i18nUtils |
private boolean |
_modelsInitialized |
private SkinModelsManager |
_modelsManager |
_galleryItemManager, _galleryItems, _menuItemManager, _menuItems, _primaryMenuItem, _referencedClientSideElement, _ribbonControlManager, _smanager, _unresolvedMenuItems_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script| Constructor and Description |
|---|
ModelsMenu() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_getGalleryItems(Map<String,Object> parameters,
Map<String,Object> contextualParameters)
Get the gallery items
|
protected Configuration |
_getModelConfiguration(String id,
SkinModel model)
Get the configuration of the model item
|
private void |
_lazyInitializeModelsGallery()
Lazy initialization of the language gallery
|
List<ClientSideElement.Script> |
getScripts(boolean ignoreRights,
Map<String,Object> contextParameters)
This method return the scripts that will be used on client side.
|
void |
service(ServiceManager smanager) |
_addDependencies, _configureClass, _configureGalleries, _configureGroupGallery, _configureItemsMenu, _getMenuItems, configure, getReferencedClientSideElements, getRights_configureParameters, _configureScript, configureInitialParameters_configureDependencies, _configureImports, _configureRights, _configureRightsMode, getDependencies, getId, getPluginName, getScripts, hasRight, setPluginInfo, toStringgetLogger, setLoggerprivate SkinModelsManager _modelsManager
private boolean _modelsInitialized
private I18nUtils _i18nUtils
public ModelsMenu()
public void service(ServiceManager smanager) throws ServiceException
service in interface Serviceableservice in class SimpleMenuServiceExceptionpublic List<ClientSideElement.Script> getScripts(boolean ignoreRights, Map<String,Object> contextParameters)
ClientSideElementgetScripts in interface ClientSideElementgetScripts in class SimpleMenuignoreRights - True to ignore the rights verification.contextParameters - Contextuals parameters transmitted by the environment.protected void _getGalleryItems(Map<String,Object> parameters, Map<String,Object> contextualParameters)
SimpleMenu_getGalleryItems in class SimpleMenuparameters - Contextual the parameters given to the control script class.contextualParameters - Contextual parameters transmitted by the environment.private void _lazyInitializeModelsGallery() throws ConfigurationException, ProcessingException
ConfigurationException - if the models' configuration is wrongProcessingException - if an error occurs when retrieving the modelsprotected Configuration _getModelConfiguration(String id, SkinModel model)
id - The id of itemmodel - The model