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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the active environment.Returns the global menu items available to the current user.void
setSecurityService
(SecurityService securityService) void
setStudioConfiguration
(StudioConfiguration studioConfiguration) void
setUiServiceInternal
(UiServiceInternal uiServiceInternal)
-
Constructor Details
-
UiServiceImpl
public UiServiceImpl()
-
-
Method Details
-
setSecurityService
-
setUiServiceInternal
-
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
-