Package passport.roles.repositories
Interface Users
- All Known Implementing Classes:
UsersInMemory
,UsersJson
public interface Users
Interface for managing User entities.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves an user by their ID.boolean
has
(EmailAddress email) Checks if an user exists by their email.list()
Lists all users.Retrieves an user by their email and password.void
Registers a new user.void
Updates an existing user.
-
Method Details
-
register
-
update
-
byId
-
ownerOf
-
has
Checks if an user exists by their email.- Parameters:
email
- the email of the user- Returns:
- true if the user exists, false otherwise
-
list
-