UserRepository

interface UserRepository

Repository interface for managing User entities.

Functions

Link copied to clipboard
abstract fun deleteById(userId: String): Boolean

Deletes a user by their ID.

Link copied to clipboard
abstract fun findAll(): List<User>

Retrieves all users.

Link copied to clipboard
abstract fun findByEmail(email: String): User?

Retrieves a user by their email.

Link copied to clipboard
abstract fun findById(userId: String): User?

Retrieves a user by their ID.

Link copied to clipboard
abstract fun save(user: User): User

Saves a given user.

Link copied to clipboard
abstract fun update(user: User): User?

Updates a given user.