Class UiServiceImpl
java.lang.Object
org.craftercms.studio.impl.v2.service.ui.UiServiceImpl
- All Implemented Interfaces:
UiService
Default implementation of
UiService
. Delegates to the UiServiceInternal
for the actual work.- Author:
- avasquez
-
Constructor Summary
ConstructorsConstructorDescriptionUiServiceImpl
(SecurityService securityService, UiServiceInternal uiServiceInternal) -
Method Summary
Modifier and TypeMethodDescriptionReturns the active environment.Returns the global menu items available to the current user.void
setStudioConfiguration
(StudioConfiguration studioConfiguration)
-
Constructor Details
-
UiServiceImpl
-
-
Method Details
-
getStudioConfiguration
-
setStudioConfiguration
-
getGlobalMenu
Description copied from interface:UiService
Returns the global menu items available to the current user.- Specified by:
getGlobalMenu
in interfaceUiService
- Returns:
- the list of menu items
- Throws:
AuthenticationException
- if not user is logged inServiceLayerException
- if another error occurs
-
getActiveEnvironment
Description copied from interface:UiService
Returns the active environment.- Specified by:
getActiveEnvironment
in interfaceUiService
- Returns:
- active environment
- Throws:
AuthenticationException
- authentication error
-