public class PreAuthorizeViewProviderAccessDelegate extends Object implements ApplicationContextAware, VaadinSecurityAware, com.vaadin.spring.access.ViewAccessControl
ViewAccessControl that
checks if a view has the PreAuthorize annotation and if so,
uses the VaadinSecurity instance to check if the current user is authorized to
access the view.| Constructor and Description |
|---|
PreAuthorizeViewProviderAccessDelegate() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAccessGranted(UI ui,
String beanName) |
void |
setApplicationContext(ApplicationContext applicationContext) |
void |
setVaadinSecurity(VaadinSecurity vaadinSecurity)
Set the VaadinSecurity.
|
public PreAuthorizeViewProviderAccessDelegate()
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext in interface ApplicationContextAwareBeansExceptionpublic void setVaadinSecurity(VaadinSecurity vaadinSecurity)
VaadinSecurityAwareInvoked after population of normal bean properties but before an init callback such
as InitializingBean.afterPropertiesSet()
or a custom init-method.
setVaadinSecurity in interface VaadinSecurityAwarevaadinSecurity - the VaadinSecurity object used within the applicationContext.Copyright © 2015. All rights reserved.