@Interceptor @Priority(value=4000) public class RolesCDIInterceptor extends Object implements Serializable
| Constructor and Description |
|---|
RolesCDIInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkRoles(Roles roles)
Check that the roles allowed by the class or method match the roles currently granted to the caller.
|
Object |
method(javax.interceptor.InvocationContext invocationContext)
Method invoked whenever a method annotated with @Roles, or a method within a class annotated with @Roles is
called.
|
public Object method(javax.interceptor.InvocationContext invocationContext)
invocationContext - Context provided by Weld.public boolean checkRoles(Roles roles)
roles - The roles declared within the @Roles annotation.Copyright © 2018. All rights reserved.