public class SecuredViewAccessControl extends Object implements VaadinSecurityAware, ApplicationContextAware, com.vaadin.spring.access.ViewAccessControl
ViewAccessControl that
checks if a view has the Secured annotation and if so,
uses the VaadinSecurity instance to check if the current user is authorized to
access the view.VaadinSecurity.hasAnyAuthority(String...),
PreAuthorizeViewInstanceAccessControl| Constructor and Description |
|---|
SecuredViewAccessControl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAccessGranted(UI ui,
String beanName) |
void |
setApplicationContext(ApplicationContext applicationContext) |
void |
setVaadinSecurity(VaadinSecurity vaadinSecurity)
Set the VaadinSecurity.
|
public 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.public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext in interface ApplicationContextAwareBeansExceptionCopyright © 2017. All rights reserved.