Package com.vaadin.spring.access
Interface ViewInstanceAccessControl
public interface ViewInstanceAccessControl
Interface to be implemented by Spring beans that will be consulted by the
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.- Author:
- Petter Holmström (petter@vaadin.com), Henri Sara (hesara@vaadin.com)
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisAccessGranted(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.
-
Method Details