Interface UserProvider

All Known Implementing Classes:
UserProviderImpl

public interface UserProvider
The User interface provides methods for managing user data in a database. It allows checking for user existence, creating and deleting users, and retrieving user information. This interface is designed to be implemented by classes that provide specific database interactions.
  • Method Details

    • closeCache

      void closeCache()
    • refreshCache

      void refreshCache()
    • findById

      User findById(int userId)
    • findByMojangId

      User findByMojangId(UUID uuid)
    • findByUsername

      User findByUsername(String username)
    • findAll

      List<User> findAll()
    • findMojangIds

      List<UUID> findMojangIds()
    • findUsernames

      List<String> findUsernames()
    • create

      User create(UUID uuid, String username)
    • delete

      int delete(int userId)
    • update

      User update(int userId, String username, LocalDateTime firstLogin, boolean debugUser, boolean debugEnabled, int languageIdr)