Package com.vaadin.flow.server.auth
Class DefaultMenuAccessControl
java.lang.Object
com.vaadin.flow.server.auth.DefaultMenuAccessControl
- All Implemented Interfaces:
MenuAccessControl
,Serializable
Default implementation of
MenuAccessControl
.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.flow.server.auth.MenuAccessControl
MenuAccessControl.PopulateClientMenu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets whether the Hilla application's main menu should be populated automatically with server side routes and therefore routes information sent to the browser.void
setPopulateClientSideMenu
(MenuAccessControl.PopulateClientMenu populateClientSideMenu) Sets whether the Hilla application's main menu should be populated automatically with server side routes and therefore routes information sent to the browser.
-
Constructor Details
-
DefaultMenuAccessControl
public DefaultMenuAccessControl()
-
-
Method Details
-
setPopulateClientSideMenu
Description copied from interface:MenuAccessControl
Sets whether the Hilla application's main menu should be populated automatically with server side routes and therefore routes information sent to the browser. Three possible values:MenuAccessControl.PopulateClientMenu.ALWAYS
,MenuAccessControl.PopulateClientMenu.NEVER
,MenuAccessControl.PopulateClientMenu.AUTOMATIC
.- Specified by:
setPopulateClientSideMenu
in interfaceMenuAccessControl
- Parameters:
populateClientSideMenu
- whether the client-side menu should be populated with server side routes
-
getPopulateClientSideMenu
Description copied from interface:MenuAccessControl
Gets whether the Hilla application's main menu should be populated automatically with server side routes and therefore routes information sent to the browser.- Specified by:
getPopulateClientSideMenu
in interfaceMenuAccessControl
- Returns:
- enum of type
MenuAccessControl.PopulateClientMenu
-