Uses of Class
usecase.auth.AdminsOnly
-
Packages that use AdminsOnly Package Description usecase.auth Package contenente la logica relativa alle autorizzazioniusecase.section Package contenente la logica relativa alle sezioniusecase.user Package contenente la logica relativa agli utenti -
-
Uses of AdminsOnly in usecase.auth
Classes in usecase.auth with annotations of type AdminsOnly Modifier and Type Class Description class
AdminsOnlyInterceptor
Classe interceptor per verificare lo stato di admin di un utente loggato. -
Uses of AdminsOnly in usecase.section
Methods in usecase.section with annotations of type AdminsOnly Modifier and Type Method Description void
SectionService. delete(int id)
Cancella una sezione dato il suo idint
SectionService. newSection(@NotBlank @Size(max=50) String name, @Size(max=255) String description, BufferedInputStream picture, BufferedInputStream banner)
Crea una nuova sezione e ne restituisce l'id -
Uses of AdminsOnly in usecase.user
Methods in usecase.user with annotations of type AdminsOnly Modifier and Type Method Description int
BanService. addBan(@NotNull @Future Instant date, int userId)
Aggiunge un ban dato l'id di un utente.void
UserService. delete(int id)
Elimina un utente dato un idvoid
BanService. removeBan(int banId)
Rimuove un ban dato il suo idList<BanDTO>
BanService. retrieveUserBan(int userId)
Ritorna la lista dei ban di un utentevoid
UserService. toggleAdmin(int id)
Inverte lo stato di admin di un utente dato un id
-