Polar Help

UserRepository Interface

Introduction

The UserRepository interface provides methods to query for user objects by different identifiers.

Methods

queryUserByUuid

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

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

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.