Interface IUserService
- All Known Implementing Classes:
UserService
public interface IUserService
Service interface for user-related operations in the BTO Management System.
This interface defines the contract for user management services, providing methods to retrieve user information by ID or in bulk. It serves as an abstraction layer between controllers and the user repository.
-
Method Summary
Modifier and TypeMethodDescriptionfindUserById
(String nric) Finds a user by their NRIC (National Registration Identity Card).findUserNames
(Collection<String> nrics) Retrieves names for a collection of users identified by their NRICs.
-
Method Details
-
findUserById
Finds a user by their NRIC (National Registration Identity Card).- Parameters:
nric
- The NRIC of the user to find- Returns:
- The user with the specified NRIC, or null if not found
-
findUserNames
Retrieves names for a collection of users identified by their NRICs.This method is particularly useful for UI displays that need to show user names alongside references to users by their IDs.
- Parameters:
nrics
- A collection of NRICs for which to retrieve names- Returns:
- A map of NRICs to user names
-