public class SecurityAnnotationsViewAccessControl extends Object implements com.vaadin.spring.access.ViewAccessControl, org.springframework.context.ApplicationContextAware
ViewAccessControl bean to check View authorization using javax.annotation.security
annotations on View class (RolesAllowed, PermitAll, DenyAll) and relying on
AuthContext to perform authorization control.
An AuthContext instance must be available as Context resource in order to perform access control.
AuthContext.getCurrent()| Constructor and Description |
|---|
SecurityAnnotationsViewAccessControl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAccessGranted(com.vaadin.ui.UI ui,
String beanName) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public SecurityAnnotationsViewAccessControl()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic boolean isAccessGranted(com.vaadin.ui.UI ui,
String beanName)
isAccessGranted in interface com.vaadin.spring.access.ViewAccessControlCopyright © 2019 The Holon Platform. All rights reserved.