public class ServiceMenu extends AbstractPageMenu
| Modifier and Type | Class and Description | 
|---|---|
| (package private) class  | ServiceMenu.I18nizableTextComparator | 
| (package private) class  | ServiceMenu.ServiceComparator | 
SimpleMenu.GalleryGroup, SimpleMenu.GalleryItem, SimpleMenu.UnresolvedItemClientSideElement.Script, ClientSideElement.ScriptFile| Modifier and Type | Field and Description | 
|---|---|
| protected I18nUtils | _i18nUtilsThe i18n utils | 
| protected PageDAO | _pageDAOThe service assignment handler | 
| protected ServiceExtensionPoint | _serviceExtensionPointThe list of content types | 
| private boolean | _servicesInitialized | 
_resolver, _synchronizeComponent_galleryItemManager, _galleryItems, _menuItemManager, _menuItems, _primaryMenuItem, _referencedClientSideElement, _ribbonControlManager, _smanager, _unresolvedMenuItems_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script| Constructor and Description | 
|---|
| ServiceMenu() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected ClientSideElement.Script | _configureScript(Configuration configuration)Configure the script | 
| protected void | _getGalleryItems(Map<String,Object> parameters,
                Map<String,Object> contextualParameters)Get the gallery items | 
| protected Configuration | _getServiceConfiguration(String id,
                        Service service)Get the configuration of the service item | 
| protected Map<I18nizableText,Set<Service>> | _getServicesByGroup()Get the list of services classified by groups | 
| private void | _lazyInitializeServiceGallery() | 
| protected void | addService(Service service,
          Map<I18nizableText,Set<Service>> groups)Add service to groups | 
| Map<String,Object> | getAvailableServices(String pageId,
                    String zoneName)Get the available templates for pages | 
| List<ClientSideElement.Script> | getScripts(boolean ignoreRights,
          Map<String,Object> contextParameters)This method return the scripts that will be used on client side. | 
| protected boolean | hasRight(Service service,
        Page page)Test if the current user has the right needed by the service to create it. | 
| protected boolean | isValidService(Service service)Determines if the service is a valid service for the gallery | 
| void | service(ServiceManager smanager) | 
getAllRightPageDescription, getNoModifiablePageDescription, getNoRightPageDescription, getPageDefaultParameters, hasRight_addDependencies, _configureClass, _configureGalleries, _configureGroupGallery, _configureItemsMenu, _getMenuItems, configure, getReferencedClientSideElements, getRights_configureParameters, configureInitialParameters_configureDependencies, _configureImports, _configureRights, _configureRightsMode, getDependencies, getId, getPluginName, getScripts, hasRight, setPluginInfo, toStringgetLogger, setLoggerprotected ServiceExtensionPoint _serviceExtensionPoint
protected I18nUtils _i18nUtils
private boolean _servicesInitialized
public ServiceMenu()
public void service(ServiceManager smanager) throws ServiceException
service in interface Serviceableservice in class AbstractPageMenuServiceExceptionprotected ClientSideElement.Script _configureScript(Configuration configuration) throws ConfigurationException
StaticFileImportsClientSideElement_configureScript in class StaticClientSideElementconfiguration - the global configurationConfigurationException - The configuration is incorrectpublic 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.public Map<String,Object> getAvailableServices(String pageId, String zoneName)
pageId - The id of the pagezoneName - the name of the zoneprotected 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 _lazyInitializeServiceGallery() throws ConfigurationException
ConfigurationExceptionprotected Map<I18nizableText,Set<Service>> _getServicesByGroup()
protected void addService(Service service, Map<I18nizableText,Set<Service>> groups)
service - The servicegroups - The groupsprotected boolean isValidService(Service service)
service - The serviceprotected Configuration _getServiceConfiguration(String id, Service service)
id - The id of itemservice - The service