UserService

interface UserService<U : User>

Common interface for working with users in the system. Applications don't need to use this, but may find it useful

Functions

Link copied to clipboard
abstract fun findByEmail(email: String): U?
Link copied to clipboard
abstract fun findById(id: String): U?
Link copied to clipboard
abstract fun findByUsername(username: String): U?
Link copied to clipboard
open fun provisionUser(userInfo: User): U

Add the user to the system given core information. Implementations may consider their own subtypes. Default implementation refuses to do so.