public class SecuredViewProviderAccessDelegate extends Object implements VaadinSecurityAware, com.vaadin.spring.access.ViewAccessControl, com.vaadin.spring.access.ViewInstanceAccessControl
ViewAccessControl and ViewInstanceAccessControl 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...)| Constructor and Description |
|---|
SecuredViewProviderAccessDelegate() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAccessGranted(UI ui,
String beanName) |
boolean |
isAccessGranted(UI ui,
String beanName,
View view) |
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 boolean isAccessGranted(UI ui, String beanName)
isAccessGranted in interface com.vaadin.spring.access.ViewAccessControlCopyright © 2015. All rights reserved.