Interface WorkerQueryService

All Known Implementing Classes:
WorkerQueryServiceImpl

public interface WorkerQueryService
Service for querying the database for information about requests. Used only by workers.
  • Method Details

    • getAllRequestTypes

      List<RequestType> getAllRequestTypes()
      Get all the requests in the database.
      Returns:
      a list of all the request types in the database
    • getRequestByAvailabilityID

      Request getRequestByAvailabilityID(String id) throws InvalidAvailabilityIDException
      Get all the requests with the given availability id.
      Parameters:
      id - the id of the request to retrieve
      Returns:
      the request with the given id
      Throws:
      InvalidAvailabilityIDException - if the given id is not a valid availability id