com.vaadin.flow.server.auth.
Class DefaultMenuAccessControl
All Implemented Interfaces:
Direct Known Subclasses:
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.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.server.auth.MenuAccessControl
canAccessView
-
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
-