Class UiServiceImpl
- java.lang.Object
-
- org.craftercms.studio.impl.v2.service.ui.UiServiceImpl
-
- All Implemented Interfaces:
UiService
public class UiServiceImpl extends Object implements UiService
Default implementation ofUiService
. Delegates to theUiServiceInternal
for the actual work.- Author:
- avasquez
-
-
Constructor Summary
Constructors Constructor Description UiServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getActiveEnvironment()
Returns the active environment.List<MenuItem>
getGlobalMenu()
Returns the global menu items available to the current user.StudioConfiguration
getStudioConfiguration()
void
setSecurityService(SecurityService securityService)
void
setStudioConfiguration(StudioConfiguration studioConfiguration)
void
setUiServiceInternal(UiServiceInternal uiServiceInternal)
-
-
-
Method Detail
-
setSecurityService
public void setSecurityService(SecurityService securityService)
-
setUiServiceInternal
public void setUiServiceInternal(UiServiceInternal uiServiceInternal)
-
getStudioConfiguration
public StudioConfiguration getStudioConfiguration()
-
setStudioConfiguration
public void setStudioConfiguration(StudioConfiguration studioConfiguration)
-
getGlobalMenu
public List<MenuItem> getGlobalMenu() throws AuthenticationException, ServiceLayerException
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
public String getActiveEnvironment() throws AuthenticationException
Description copied from interface:UiService
Returns the active environment.- Specified by:
getActiveEnvironment
in interfaceUiService
- Returns:
- active environment
- Throws:
AuthenticationException
- authentication error
-
-