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
FieldsModifier and TypeFieldDescriptionstatic final intThepriorityused to register theBeforeEnterListenerused to perform access control. -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckAccess(com.vaadin.flow.router.BeforeEnterEvent event) booleanhasAccessTo(Class<? extends com.vaadin.flow.component.Component> navigationTarget) booleanhasAccessTo(String routePath)
-
Field Details
-
PRIORITY
static final int PRIORITYThepriorityused to register theBeforeEnterListenerused to perform access control. The value is very high but still allows other listeners before it.- See Also:
-
-
Method Details
-
hasAccessTo
-
hasAccessTo
-
checkAccess
void checkAccess(com.vaadin.flow.router.BeforeEnterEvent event)
-