Interface NavigationConfigurationService
public interface NavigationConfigurationService
-
Method Summary
Modifier and TypeMethodDescriptiongetConfiguration(String username, Locale locale, boolean resolve) getSidebarConfiguration(String username, Locale locale) getSidebarUserMode(String username) Retrieves the preferred mode of sidebar by a usergetTopbarConfiguration(String username, Locale locale) booleanbooleanisMetaSiteNavigation(String siteName) Check whether a given site is a meta site navigationvoidupdateConfiguration(NavigationConfiguration navigationConfiguration) Updates the Navigation configurationvoidupdateSidebarUserMode(String username, SidebarMode mode) Updates the preferred mode of sidebar by the user
-
Method Details
-
getConfiguration
NavigationConfiguration getConfiguration()- Returns:
NavigationConfigurationwith the complete configuration of Navigation
-
getConfiguration
- Parameters:
username- User namelocale-Localeto compute Menu item namesresolve- either resolve name and icon of elements or not- Returns:
NavigationConfigurationwith the complete configuration of Navigation
-
getTopbarConfiguration
- Parameters:
username- User namelocale-Localeto compute Menu item names- Returns:
TopbarConfigurationswitch user role and customized settings
-
getSidebarConfiguration
- Parameters:
username- User namelocale-Localeto compute Menu item names- Returns:
SidebarConfigurationswitch user role and customized settings
-
getSidebarUserMode
Retrieves the preferred mode of sidebar by a user- Parameters:
username- User name as identifier- Returns:
- preferred
SidebarModeor default if not set by user yet
-
getDefaultTopbarApplications
List<TopbarApplication> getDefaultTopbarApplications()- Returns:
- Default Topbar Applications as configured in
AddOnService
-
isAllowUserHome
boolean isAllowUserHome()- Returns:
- true if Users can have personal home URL, else false
-