Class SecuredRoute.NotSetAccessEvaluator

    • Constructor Detail

      • NotSetAccessEvaluator

        public NotSetAccessEvaluator()
    • Method Detail

      • hasAccess

        public boolean hasAccess​(com.vaadin.flow.router.BeforeEnterEvent beforeEnterEvent,
                                 Class<?> targetOrLayout)
        Description copied from interface: AccessEvaluator
        Returns whether the user should be granted access to the navigation target. The provided class is either the navigation target itself or one of its parent layouts currently being evaluated.

        When access is denied, it's allowed to call the forward or reroute methods on the event.

        VaadinSecurity can be very useful in implementations.

        Specified by:
        hasAccess in interface AccessEvaluator
        Parameters:
        beforeEnterEvent - the attempted navigation to be checked for access
        targetOrLayout - the current target or layout class being evaluated
        Returns:
        whether the user should have access to the navigation target