Package usecase.auth
Class AdminsOnlyInterceptor
- java.lang.Object
-
- usecase.auth.AdminsOnlyInterceptor
-
@Interceptor @AdminsOnly @Priority(2003) public class AdminsOnlyInterceptor extends Object
Classe interceptor per verificare lo stato di admin di un utente loggato.
-
-
Constructor Summary
Constructors Constructor Description AdminsOnlyInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
checkAdmin(InvocationContext invocationContext)
Controlla se l'utente loggato è un admin.
-
-
-
Constructor Detail
-
AdminsOnlyInterceptor
public AdminsOnlyInterceptor()
-
-
Method Detail
-
checkAdmin
public Object checkAdmin(InvocationContext invocationContext) throws Exception
Controlla se l'utente loggato è un admin.- Parameters:
invocationContext
-- Returns:
- Oggetto che autorizza a procedere con le operazioni.
- Throws:
AuthorizationException
Exception
-
-