UserRepository Interface
Introduction#
The UserRepository interface provides methods to query for user objects by different identifiers.
Methods#
queryUserByUuid#
java
Optional<User> queryUserByUuid(UUID uuid);Description:
Queries for a user by their UUID.
Parameters:
uuid- The UUID of the user to query for.
Returns:
An Optional containing the User if found, or an empty Optional if not found.
queryUserByEntityId#
java
Optional<User> queryUserByEntityId(int entityId);Description:
Queries for a user by their entity ID.
Parameters:
entityId- The entity ID of the user to query for.
Returns:
An Optional containing the User if found, or an empty Optional if not found.
queryUserByName#
java
Optional<User> queryUserByName(String name);Description:
Queries for a user by their username.
Parameters:
name- The username of the user to query for.
Returns:
An Optional containing the User if found, or an empty Optional if not found.