Class WorkerQueryController
java.lang.Object
it.univr.passportease.controller.worker.WorkerQueryController
Controller for worker queries. It handles the following GraphQL queries:
 
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate BucketLimiterBucket limiter.private final WorkerQueryServiceWorker query service.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionThis query returns all the request types in the database.This query returns the request with the given availability id.
- 
Field Details- 
workerQueryServiceWorker query service.
- 
bucketLimiterBucket limiter.
 
- 
- 
Constructor Details- 
WorkerQueryControllerpublic WorkerQueryController()
 
- 
- 
Method Details- 
getRequestByAvailabilityID@QueryMapping public Request getRequestByAvailabilityID(@Argument("availabilityID") String id) throws InvalidAvailabilityIDException, RateLimitException This query returns the request with the given availability id.- Parameters:
- id- availability id
- Returns:
- Requestwith the given availability id
- Throws:
- InvalidAvailabilityIDException- if the given availability id is invalid
- RateLimitException- if the rate limit is exceeded
 
- 
getAllRequestTypesThis query returns all the request types in the database.- Returns:
- all the request types in the database
- Throws:
- RateLimitException- if the rate limit is exceeded
 
 
-