Class SpringMenuAccessControl

java.lang.Object
com.vaadin.flow.server.auth.DefaultMenuAccessControl
com.vaadin.flow.spring.security.SpringMenuAccessControl
All Implemented Interfaces:
com.vaadin.flow.server.auth.MenuAccessControl, Serializable

public class SpringMenuAccessControl extends com.vaadin.flow.server.auth.DefaultMenuAccessControl
A Spring specific menu access control that falls back to Spring mechanisms for view access checking, when the generic mechanisms do not work.

In Spring Boot application, a SpringMenuAccessControl is provided by default, if Spring Security is available.

See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.vaadin.flow.server.auth.MenuAccessControl

    com.vaadin.flow.server.auth.MenuAccessControl.PopulateClientMenu
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canAccessView(com.vaadin.flow.server.menu.AvailableViewInfo viewInfo)
     

    Methods inherited from class com.vaadin.flow.server.auth.DefaultMenuAccessControl

    getPopulateClientSideMenu, setPopulateClientSideMenu

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SpringMenuAccessControl

      public SpringMenuAccessControl()
  • Method Details

    • canAccessView

      public boolean canAccessView(com.vaadin.flow.server.menu.AvailableViewInfo viewInfo)