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 final int
    The priority used to register the BeforeEnterListener used to perform access control.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    checkAccess(com.vaadin.flow.router.BeforeEnterEvent event)
     
    boolean
    hasAccessTo(Class<? extends com.vaadin.flow.component.Component> navigationTarget)
     
    boolean
    hasAccessTo(String routePath)
     
  • Field Details

    • 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:
  • Method Details

    • 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)