Interface UserQueryService
- All Known Implementing Classes:
UserQueryServiceImpl
public interface UserQueryService
Service for querying user data.
-
Method Summary
Modifier and TypeMethodDescriptiongetReportDetailsByAvailabilityID
(String availabilityId, JWT token) Get the list of information for the user to generate a report.getRequestTypesByUser
(JWT token) Get the list of request types for the user.getUserDetails
(JWT token) Get the user details from the JWT token.getUserNotifications
(JWT token) Get the list of notifications of the user.getUserReservations
(JWT token) Get the list of reservations of the user.
-
Method Details
-
getUserDetails
Get the user details from the JWT token.- Parameters:
token
- JWT Access token- Returns:
- User details from the token
- Throws:
UserNotFoundException
- if the user is not found
-
getUserNotifications
Get the list of notifications of the user.- Parameters:
token
- JWT Access token- Returns:
- List of notifications for the user
-
getUserReservations
Get the list of reservations of the user.- Parameters:
token
- JWT Access token- Returns:
- List of reservations for the user
-
getReportDetailsByAvailabilityID
ReportDetails getReportDetailsByAvailabilityID(String availabilityId, JWT token) throws SecurityException, InvalidAvailabilityIDException Get the list of information for the user to generate a report.- Parameters:
availabilityId
- Availability IDtoken
- JWT Access token- Returns:
- Report details for the availability
- Throws:
SecurityException
- if the user is not the owner of the availabilityInvalidAvailabilityIDException
- if the availability ID is invalid
-
getRequestTypesByUser
Get the list of request types for the user.- Parameters:
token
- JWT Access token- Returns:
- List of request types for the user
- Throws:
InvalidRequestTypeException
- if the request type is invalid
-