Class AccountServiceImpl

java.lang.Object
com.is.findyourplace.service.gestioneUtenza.AccountServiceImpl
All Implemented Interfaces:
AccountService

@Service public class AccountServiceImpl extends Object implements AccountService
  • Constructor Details

    • AccountServiceImpl

      public AccountServiceImpl(UtenteRepository utenteRepository, org.springframework.security.crypto.password.PasswordEncoder passwordEncoder)
      Costruttore del service.
      Parameters:
      utenteRepository - UtenteRepository
      passwordEncoder - PasswordEncoder
  • Method Details

    • saveUtente

      public void saveUtente(UtenteDto utenteDto)
      Description copied from interface: AccountService
      Crea un nuovo Utente.
      Specified by:
      saveUtente in interface AccountService
      Parameters:
      utenteDto - UtenteDto
    • findByUsernameOrEmail

      public Utente findByUsernameOrEmail(String username)
      Description copied from interface: AccountService
      Trova utente tramite username o email.
      Specified by:
      findByUsernameOrEmail in interface AccountService
      Parameters:
      username - Username dell' utente
      Returns:
      Utente
    • findByUsername

      public UtenteDto findByUsername(String username)
      Description copied from interface: AccountService
      Trova utente, mappandolo in UtenteDto, tramite username.
      Specified by:
      findByUsername in interface AccountService
      Parameters:
      username - Username dell' utente
      Returns:
      UtenteDto
    • existsByUsername

      public boolean existsByUsername(String username)
      Description copied from interface: AccountService
      Controlla se esiste un Utente tramite l' username.
      Specified by:
      existsByUsername in interface AccountService
      Parameters:
      username - Username dell' utente
      Returns:
      boolean
    • existsByEmail

      public boolean existsByEmail(String email)
      Description copied from interface: AccountService
      Controlla se esiste un Utente tramite l' email.
      Specified by:
      existsByEmail in interface AccountService
      Parameters:
      email - Email dell' utente
      Returns:
      boolean