public class SetContentViewMenu extends SimpleMenu
SimpleMenu.GalleryGroup, SimpleMenu.GalleryItem, SimpleMenu.UnresolvedItemClientSideElement.Script, ClientSideElement.ScriptFile| Modifier and Type | Field and Description | 
|---|---|
protected ContentTypeExtensionPoint | 
_contentTypeExtensionPoint
The content type extension point. 
 | 
protected ContentTypesHelper | 
_contentTypesHelper
The content types helper 
 | 
protected ContentTypesAssignmentHandler | 
_cTypeHandler
The content types assignment handler 
 | 
private boolean | 
_galleryInitialized  | 
protected I18nUtils | 
_i18nUtils
The i18n utils 
 | 
protected ObservationManager | 
_observationManager
The observation manager 
 | 
protected AmetysObjectResolver | 
_resolver
Repository content 
 | 
_galleryItemManager, _galleryItems, _menuItemManager, _menuItems, _primaryMenuItem, _referencedClientSideElement, _ribbonControlManager, _smanager, _unresolvedMenuItems_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script| Constructor and Description | 
|---|
SetContentViewMenu()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
_getGalleryItems(Map<String,Object> parameters,
                Map<String,Object> contextualParameters)
Get the gallery items 
 | 
protected Configuration | 
_getMetadataSetItemConfiguration(String itemId,
                                MetadataSet metadataSet,
                                String cTypeId)
Get the configuration for a metadata set item 
 | 
private void | 
_lazyInitializeContentViewGallery()  | 
void | 
service(ServiceManager serviceManager)  | 
void | 
setContentView(String zoneItemId,
              String metadataSetName)
Set the view of a content 
 | 
_addDependencies, _configureClass, _configureGalleries, _configureGroupGallery, _configureItemsMenu, _getMenuItems, configure, getReferencedClientSideElements, getRights, getScripts_configureParameters, _configureScript, configureInitialParameters_configureDependencies, _configureImports, _configureRights, _configureRightsMode, getDependencies, getId, getPluginName, getScripts, hasRight, setPluginInfo, toStringgetLogger, setLoggerprotected ContentTypeExtensionPoint _contentTypeExtensionPoint
protected ContentTypesAssignmentHandler _cTypeHandler
protected ContentTypesHelper _contentTypesHelper
protected AmetysObjectResolver _resolver
protected ObservationManager _observationManager
protected I18nUtils _i18nUtils
private boolean _galleryInitialized
public SetContentViewMenu()
public void service(ServiceManager serviceManager) throws ServiceException
service in interface Serviceableservice in class SimpleMenuServiceExceptionprotected 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 _lazyInitializeContentViewGallery() throws ConfigurationException
ConfigurationExceptionprotected Configuration _getMetadataSetItemConfiguration(String itemId, MetadataSet metadataSet, String cTypeId)
itemId - The item idmetadataSet - The metadata setcTypeId - The content type idpublic void setContentView(String zoneItemId, String metadataSetName)
zoneItemId - the id of the zone itemmetadataSetName - the name of the metadata set to use as a view