public class PreAuthorizeViewInstanceAccessControl extends Object implements ApplicationContextAware, VaadinSecurityAware, com.vaadin.spring.access.ViewInstanceAccessControl
ViewInstanceAccessControl 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 |
|---|
PreAuthorizeViewInstanceAccessControl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAccessGranted(UI ui,
String beanName,
View view) |
void |
setApplicationContext(ApplicationContext applicationContext) |
void |
setVaadinSecurity(VaadinSecurity vaadinSecurity)
Set the VaadinSecurity.
|
public PreAuthorizeViewInstanceAccessControl()
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 © 2017. All rights reserved.