public interface ViewAccessControl
SpringViewProvider creates a view
instance. 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.
Access control beans implementing this interface are called before a view
instance is created but can access the annotations on the view bean class
through the application context. Unless contextual information from the view
instance is needed, this interface should be used instead of a
ViewInstanceAccessControl.| Modifier and Type | Method and Description |
|---|---|
boolean |
isAccessGranted(com.vaadin.ui.UI ui,
String beanName)
Checks if the current user has access to the specified view and UI.
|
boolean isAccessGranted(com.vaadin.ui.UI ui,
String beanName)
ui - the UI, never null.beanName - the bean name of the view, never null.Copyright © 2019 Vaadin Ltd. All Rights Reserved.