Package org.ametys.web.clientsideelement
Class SetContentViewMenu
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.SetContentViewMenu
- All Implemented Interfaces:
ClientSideElement,MenuClientSideElement,LogEnabled,PluginAware,Configurable,Serviceable
Menu giving the possibility to change the view rendering the content in a given ZoneItem.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder to get a view item configurationNested classes/interfaces inherited from class org.ametys.core.ui.SimpleMenu
SimpleMenu.GalleryGroup, SimpleMenu.GalleryItem, SimpleMenu.UnresolvedItemNested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentTypeExtensionPointThe content type extension point.protected ContentTypesHelperThe content types helperprotected ContentTypesAssignmentHandlerThe content types assignment handlerprotected I18nUtilsThe i18n utilsprotected ObservationManagerThe observation managerprotected AmetysObjectResolverRepository contentprotected SkinContentViewHelperHelper for skin viewsprotected SkinsManagerThe skins managerFields inherited from class org.ametys.core.ui.SimpleMenu
_galleryItems, _menuItemManager, _menuItems, _primaryMenuItem, _ribbonControlManager, _smanager, _unresolvedMenuItemsFields 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 voidGet the gallery itemsprotected Configuration_getViewItemConfiguration(String itemId, View view, String cTypeId) Get the configuration for a view itemprotected Configuration_getViewItemConfiguration(String itemId, SkinContentViewHelper.SkinContentView view, String cTypeId) Get the configuration for a skin view itemvoidservice(ServiceManager serviceManager) voidsetContentView(String zoneItemId, String viewName) Set the view of a contentMethods inherited from class org.ametys.core.ui.SimpleMenu
_addDependencies, _configureClass, _configureGalleries, _configureGroupGallery, _configureItemsMenu, _getGalleryItemManager, _getGalleryItems, _getMenuItems, _initializeGalleryItemManager, configure, getReferencedClientSideElements, getRights, getScriptsMethods inherited from class org.ametys.core.ui.StaticClientSideElement
_configureParameters, _configureScript, configureInitialParametersMethods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, getDependencies, getId, getPluginName, getScripts, hasRight, setPluginInfo, toStringMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_contentTypeExtensionPoint
The content type extension point. -
_cTypeHandler
The content types assignment handler -
_contentTypesHelper
The content types helper -
_resolver
Repository content -
_skinContentViewHelper
Helper for skin views -
_observationManager
The observation manager -
_skinsManager
The skins manager -
_i18nUtils
The i18n utils
-
-
Constructor Details
-
SetContentViewMenu
public SetContentViewMenu()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classSimpleMenu- Throws:
ServiceException
-
_getGalleryItems
protected void _getGalleryItems(Map<String, Object> parameters, Map<String, Object> contextualParameters) Description copied from class:SimpleMenuGet the gallery items- Overrides:
_getGalleryItemsin classSimpleMenu- Parameters:
parameters- Contextual the parameters given to the control script class.contextualParameters- Contextual parameters transmitted by the environment.
-
_getViewItemConfiguration
Get the configuration for a view item- Parameters:
itemId- The item idview- The viewcTypeId- The content type id- Returns:
- The configuration
-
_getViewItemConfiguration
protected Configuration _getViewItemConfiguration(String itemId, SkinContentViewHelper.SkinContentView view, String cTypeId) Get the configuration for a skin view item- Parameters:
itemId- The item idview- The skin viewcTypeId- The content type id- Returns:
- The configuration
-
setContentView
Set the view of a content- Parameters:
zoneItemId- the id of the zone itemviewName- the name of the view to use
-