public interface ViewInstanceAccessControl
SpringViewProvider after creating a view
instance but before providing it for navigation. If any of the view access
controls deny access, the view provider will act like no such view ever
existed, or show an
access denied view.
Unless contextual information from the view instance is needed, a
ViewAccessControl should be used instead of this interface.
ViewAccessControl beans are called before a view instance is created
but can access the annotations on the view bean through the application
context. If any ViewAccessControl denies access to the view, beans
implementing this interface are not called for the view.| Modifier and Type | Method and Description |
|---|---|
boolean |
isAccessGranted(com.vaadin.ui.UI ui,
String beanName,
com.vaadin.navigator.View view)
Checks if the current user has access to the specified view instance and
UI.
|
boolean isAccessGranted(com.vaadin.ui.UI ui,
String beanName,
com.vaadin.navigator.View view)
ViewAccessControl.isAccessGranted(com.vaadin.ui.UI, String), when
the view instance has already been created, but before it has been
returned by the view provider.ui - the UI, never null.beanName - the bean name of the view, never null.view - the view instance, never null.Copyright © 2017 Vaadin Ltd. All Rights Reserved.