Class DailyPlanBundleCache
java.lang.Object
overit.geocallapp.wfm.core.ux.schedule.dailyplan.DailyPlanBundleCache
Cache used to cache bundles and related entities for the daily plan.
- Since:
- 20.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the activeBOBundleOperationrelated to the given work order operation id.getAppointmentByWorkOrderOperation(Long workOrderOperationId) Finds an appointment by its associated work order operation ID.Returns all appointments in the cache.getBundleHeaderById(Long bundleId) Finds a bundle header by its ID.Returns all bundle headers in the cache.getBundleOperationById(Long bundleOperationId) Finds a bundle operation by its ID.Returns all bundle operations in the cache.getBundleOperationsByBundleId(Long bundleId) Returns all bundle operations for a specific bundle ID.getBundleOperationsByWorkOrderOperation(Long workOrderOperationId) Finds all the bundle operations by its associated work order operation ID.getIntervention(Long interventionId) Finds an intervention by its ID.getInterventionByAppointment(Long appointmentId) Finds an intervention by its associated appointment ID.getInterventionResourceByIntervention(Long interventionId) Finds an intervention resource by its associated intervention ID.Returns all intervention resources in the cache.Returns all interventions in the cache.getWorkOrderHeaderById(Long workOrderId) Finds a work order header by its ID.Returns all work order headers in the cache.getWorkOrderOperationById(Long workOrderOperationId) Finds a work order operation by its ID.Returns all work order operations in the cache.
-
Constructor Details
-
DailyPlanBundleCache
public DailyPlanBundleCache()
-
-
Method Details
-
getBundleHeaders
Returns all bundle headers in the cache.- Returns:
- collection of
BOBundleHeader
-
getBundleHeaderById
Finds a bundle header by its ID.- Parameters:
bundleId- the bundle ID to search for- Returns:
- the
BOBundleHeaderor null if not found
-
getBundleOperations
Returns all bundle operations in the cache.- Returns:
- collection of
BOBundleOperation
-
getBundleOperationById
Finds a bundle operation by its ID.- Parameters:
bundleOperationId- the bundle operation ID to search for- Returns:
- the
BOBundleOperationor null if not found
-
getBundleOperationsByWorkOrderOperation
Finds all the bundle operations by its associated work order operation ID.- Parameters:
workOrderOperationId- the work order operation ID to search for- Returns:
- the list of related
BOBundleOperations or null if not found
-
getActiveOperationByWorkOrderOperationId
Returns the activeBOBundleOperationrelated to the given work order operation id.- Parameters:
woId- the work order operation id- Returns:
- the corresponding
BOBundleOperation, null if no suchBOBundleOperationexists
-
getBundleOperationsByBundleId
Returns all bundle operations for a specific bundle ID.- Parameters:
bundleId- the bundle ID to filter by- Returns:
- collection of
BOBundleOperationfor the specified bundle
-
getWorkOrderHeaders
Returns all work order headers in the cache.- Returns:
- collection of
BOWorkOrderHeader
-
getWorkOrderHeaderById
Finds a work order header by its ID.- Parameters:
workOrderId- the work order ID to search for- Returns:
- the
BOWorkOrderHeaderor null if not found
-
getWorkOrderOperations
Returns all work order operations in the cache.- Returns:
- collection of
BOWorkOrderOperation
-
getWorkOrderOperationById
Finds a work order operation by its ID.- Parameters:
workOrderOperationId- the work order operation ID to search for- Returns:
- the
BOWorkOrderOperationor null if not found
-
getAppointments
Returns all appointments in the cache.- Returns:
- collection of
BOAppointment
-
getAppointmentByWorkOrderOperation
Finds an appointment by its associated work order operation ID.- Parameters:
workOrderOperationId- the work order operation ID to search for- Returns:
- the
BOAppointmentor null if not found
-
getInterventions
Returns all interventions in the cache.- Returns:
- collection of
InterventionAggregate
-
getInterventionByAppointment
Finds an intervention by its associated appointment ID.- Parameters:
appointmentId- the appointment ID to search for- Returns:
- the first
InterventionAggregateor null if not found
-
getIntervention
Finds an intervention by its ID.- Parameters:
interventionId- the intervention ID to search for- Returns:
- the
InterventionAggregateor null if not found
-
getInterventionResources
Returns all intervention resources in the cache.- Returns:
- collection of
BOInterventionResource
-
getInterventionResourceByIntervention
Finds an intervention resource by its associated intervention ID.- Parameters:
interventionId- the intervention ID to search for- Returns:
- the
BOInterventionResourceor null if not found
-