Class UiServiceInternalImpl
java.lang.Object
org.craftercms.studio.impl.v2.service.ui.internal.UiServiceInternalImpl
- All Implemented Interfaces:
UiServiceInternal
Default implementation of
UiServiceInternal.- Author:
- avasquez
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetGlobalMenu(Set<String> permissions) Returns the global menu items available based on the specified permissionsprotected org.apache.commons.configuration2.HierarchicalConfiguration<?> protected Stringprotected Stringprotected StringgetRequiredStringProperty(org.apache.commons.configuration2.Configuration config, String key) voidsetConfigurationService(ConfigurationService configurationService) voidsetStudioConfiguration(StudioConfiguration studioConfiguration)
-
Constructor Details
-
UiServiceInternalImpl
public UiServiceInternalImpl()
-
-
Method Details
-
setStudioConfiguration
-
setConfigurationService
-
getGlobalMenu
Description copied from interface:UiServiceInternalReturns the global menu items available based on the specified permissions- Specified by:
getGlobalMenuin interfaceUiServiceInternal- Parameters:
permissions- the permissions that restrict what menu items the user has access to- Returns:
- the list of menu items
- Throws:
ServiceLayerException- if another error occurs
-
getGlobalMenuConfig
protected org.apache.commons.configuration2.HierarchicalConfiguration<?> getGlobalMenuConfig() throws ConfigurationException- Throws:
ConfigurationException
-
getRequiredStringProperty
protected String getRequiredStringProperty(org.apache.commons.configuration2.Configuration config, String key) throws ConfigurationException - Throws:
ConfigurationException
-
getGlobalMenuConfigPath
-
getGlobalConfigPath
-
getGlobalMenuFileName
-