Interface RouteAccessControl

  • All Known Implementing Classes:
    DefaultRouteAccessControl

    public interface RouteAccessControl
    Checks access before entering a navigation target and can evaluate access to specific navigation targets or route paths.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int PRIORITY
      The priority used to register the BeforeEnterListener used to perform access control.
    • Field Detail

      • PRIORITY

        static final int PRIORITY
        The priority used to register the BeforeEnterListener used to perform access control. The value is very high but still allows other listeners before it.
        See Also:
        Constant Field Values
    • Method Detail

      • hasAccessTo

        boolean hasAccessTo​(Class<? extends com.vaadin.flow.component.Component> navigationTarget)
      • hasAccessTo

        boolean hasAccessTo​(String routePath)
      • checkAccess

        void checkAccess​(com.vaadin.flow.router.BeforeEnterEvent event)