Interface UserQueryService

All Known Implementing Classes:
UserQueryServiceImpl

public interface UserQueryService
Service for querying user data.
  • Method Details

    • getUserDetails

      User getUserDetails(JWT token) throws UserNotFoundException
      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

      List<Notification> getUserNotifications(JWT token)
      Get the list of notifications of the user.
      Parameters:
      token - JWT Access token
      Returns:
      List of notifications for the user
    • getUserReservations

      List<Availability> getUserReservations(JWT token)
      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 ID
      token - JWT Access token
      Returns:
      Report details for the availability
      Throws:
      SecurityException - if the user is not the owner of the availability
      InvalidAvailabilityIDException - if the availability ID is invalid
    • getRequestTypesByUser

      List<RequestType> getRequestTypesByUser(JWT token) throws InvalidRequestTypeException
      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