com.vaadin.flow.server.auth.
Package com.vaadin.flow.server.auth
Class AnnotatedViewAccessChecker
java.lang.Object
com.vaadin.flow.server.auth.AnnotatedViewAccessChecker
All Implemented Interfaces:
Checks access to views using an AccessAnnotationChecker
.
An instance of this class should be provided to a
NavigationAccessControl
added as a BeforeEnterListener
to the
UI
of interest.
See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance using the given checker.
AnnotatedViewAccessChecker
(AccessAnnotationChecker accessAnnotationChecker) Creates an instance using the given checker.
-
Method Summary
Modifier and TypeMethodDescriptioncheck
(NavigationContext context) Checks if the current user is allowed to access a target view.
-
Constructor Details
-
AnnotatedViewAccessChecker
public AnnotatedViewAccessChecker()Creates an instance using the given checker.
-
AnnotatedViewAccessChecker
Creates an instance using the given checker.
Parameters:
accessAnnotationChecker
- the checker to use
-
-
Method Details