Package com.vaadin.flow.server.auth
Class DefaultMenuAccessControl
java.lang.Object
com.vaadin.flow.server.auth.DefaultMenuAccessControl
- All Implemented Interfaces:
MenuAccessControl,Serializable
- Direct Known Subclasses:
SpringMenuAccessControl
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.voidsetPopulateClientSideMenu(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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.server.auth.MenuAccessControl
canAccessView
-
Constructor Details
-
DefaultMenuAccessControl
public DefaultMenuAccessControl()
-
-
Method Details
-
setPopulateClientSideMenu
Description copied from interface:MenuAccessControlSets 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:
setPopulateClientSideMenuin interfaceMenuAccessControl- Parameters:
populateClientSideMenu- whether the client-side menu should be populated with server side routes
-
getPopulateClientSideMenu
Description copied from interface:MenuAccessControlGets 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:
getPopulateClientSideMenuin interfaceMenuAccessControl- Returns:
- enum of type
MenuAccessControl.PopulateClientMenu
-