Class WorkerQueryController
java.lang.Object
it.univr.passportease.controller.worker.WorkerQueryController
Controller for worker queries. It handles the following GraphQL queries:
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate BucketLimiter
Bucket limiter.private final WorkerQueryService
Worker query service. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThis query returns all the request types in the database.This query returns the request with the given availability id.
-
Field Details
-
workerQueryService
Worker query service. -
bucketLimiter
Bucket limiter.
-
-
Constructor Details
-
WorkerQueryController
public 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:
Request
with the given availability id- Throws:
InvalidAvailabilityIDException
- if the given availability id is invalidRateLimitException
- if the rate limit is exceeded
-
getAllRequestTypes
This 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
-