Interface WorkerQueryService
- All Known Implementing Classes:
WorkerQueryServiceImpl
public interface WorkerQueryService
Service for querying the database for information about requests. Used only by workers.
-
Method Summary
Modifier and TypeMethodDescriptionGet all the requests in the database.Get all the requests with the given availability id.
-
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
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
-