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 classAdminsOnlyInterceptorClasse 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 voidSectionService. delete(int id)Cancella una sezione dato il suo idintSectionService. 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 intBanService. addBan(@NotNull @Future Instant date, int userId)Aggiunge un ban dato l'id di un utente.voidUserService. delete(int id)Elimina un utente dato un idvoidBanService. removeBan(int banId)Rimuove un ban dato il suo idList<BanDTO>BanService. retrieveUserBan(int userId)Ritorna la lista dei ban di un utentevoidUserService. toggleAdmin(int id)Inverte lo stato di admin di un utente dato un id
-