Class ManageUsersServiceImpl
java.lang.Object
com.is.findyourplace.service.gestioneAmministratori.ManageUsersServiceImpl
- All Implemented Interfaces:
ManageUsersService
-
Constructor Summary
ConstructorsConstructorDescriptionManageUsersServiceImpl(UtenteRepository utenteRepository, org.springframework.security.crypto.password.PasswordEncoder passwordEncoder) Costruttore del service. -
Method Summary
Modifier and TypeMethodDescriptionRestituisce la lista di tutti gli utenti, mappati in UtenteDto.findByUsernameOrEmail(String username) Trova utente, mappandolo in UtenteDto, tramite username o email.voidupdateUtentePassword(Utente utente, String password) Aggiorna l'username di un utente.voidupdateUtenteUsername(Utente utente) Aggiorna l'username di un utente.
-
Constructor Details
-
ManageUsersServiceImpl
public ManageUsersServiceImpl(UtenteRepository utenteRepository, org.springframework.security.crypto.password.PasswordEncoder passwordEncoder) Costruttore del service.- Parameters:
utenteRepository- UtenteRepositorypasswordEncoder- PasswordEncoder
-
-
Method Details
-
updateUtenteUsername
Description copied from interface:ManageUsersServiceAggiorna l'username di un utente.- Specified by:
updateUtenteUsernamein interfaceManageUsersService- Parameters:
utente- Utente
-
updateUtentePassword
Description copied from interface:ManageUsersServiceAggiorna l'username di un utente.- Specified by:
updateUtentePasswordin interfaceManageUsersService- Parameters:
utente- Utentepassword- Nuova password
-
findAllUtenti
Description copied from interface:ManageUsersServiceRestituisce la lista di tutti gli utenti, mappati in UtenteDto.- Specified by:
findAllUtentiin interfaceManageUsersService- Returns:
- Lista di utenti
-
findByUsernameOrEmail
Description copied from interface:ManageUsersServiceTrova utente, mappandolo in UtenteDto, tramite username o email.- Specified by:
findByUsernameOrEmailin interfaceManageUsersService- Parameters:
username- Username dell' utente- Returns:
- UtenteDto
-