Uses of Class
it.univr.passportease.entity.Office
Package
Description
-
Uses of Office in it.univr.passportease.controller
Modifier and TypeMethodDescriptionUserWorkerQueryController.getOffices()
This query returns all the offices in the database. -
Uses of Office in it.univr.passportease.dto.input
-
Uses of Office in it.univr.passportease.entity
Modifier and TypeFieldDescriptionprivate @NonNull Office
Availability.office
TheOffice
of theAvailability
.private @NonNull Office
Notification.office
TheOffice
that thisNotification
is requested to.private @NonNull Office
OfficeWorkingDay.office
The office to which this working day belongsprivate @NonNull Office
RequestOffice.office
TheOffice
that is related to thisRequestOffice
.private @NonNull Office
Worker.office
The office of theWorker
. -
Uses of Office in it.univr.passportease.helper.map
Modifier and TypeMethodDescriptionMapRequestOffice.mapRequestAndOfficeToRequestOffice
(Request request, Office office) MapAvailability.mapRequestToAvailability
(Request request, Office office, LocalDate localDate, LocalTime time) Map aRequest
to anAvailability
object. -
Uses of Office in it.univr.passportease.repository
Modifier and TypeMethodDescriptionOfficeRepository.findAllByNameIn
(List<String> names) Find all the offices with the given names.OfficeRepository.findByName
(String name) Find the office with the given name.Modifier and TypeMethodDescriptionlong
WorkerRepository.countByOffice
(Office office) Counts the number of workers of the givenOffice
.NotificationRepository.findAllByOfficeAndIsReadyAndRequestType
(Office office, boolean isReady, RequestType requestType) Find all the notifications for the given office, ready status and request type.OfficeWorkingDayRepository.findByOffice
(Office office) Find all theOfficeWorkingDay
entities for the givenOffice
entity. -
Uses of Office in it.univr.passportease.service.userworker
-
Uses of Office in it.univr.passportease.service.userworker.impl
-
Uses of Office in it.univr.passportease.service.worker.impl
Modifier and TypeMethodDescriptionprivate long
WorkerMutationServiceImpl.countBusyWorkersInOffice
(Office office, RequestInput requestInput) Count busy workers in office, between start and end date and time.Modifier and TypeMethodDescriptionprivate void
WorkerMutationServiceImpl.createAvailabilities
(Date startDate, Date endDate, List<Office> offices, Request request) Create availabilities for each office between start and end date and time.private boolean
WorkerMutationServiceImpl.isWorkersNotEnoughForRequest
(RequestInput requestInput, List<Office> offices) Check if there are not enough workers for the request, by checking if there are more requests than workers in each office.private void
WorkerMutationServiceImpl.setNotifications
(Date startDate, Date endDate, List<Office> offices, RequestType requestType) Set notifications asready = true
if they are between start and end date and time andready = false
otherwise.