Class DailyPlanBundleCache

java.lang.Object
overit.geocallapp.wfm.core.ux.schedule.dailyplan.DailyPlanBundleCache

public class DailyPlanBundleCache extends Object
Cache used to cache bundles and related entities for the daily plan.
Since:
20.1
  • Constructor Details

    • DailyPlanBundleCache

      public DailyPlanBundleCache()
  • Method Details

    • getBundleHeaders

      public Collection<BOBundleHeader> getBundleHeaders()
      Returns all bundle headers in the cache.
      Returns:
      collection of BOBundleHeader
    • getBundleHeaderById

      public BOBundleHeader getBundleHeaderById(Long bundleId)
      Finds a bundle header by its ID.
      Parameters:
      bundleId - the bundle ID to search for
      Returns:
      the BOBundleHeader or null if not found
    • getBundleOperations

      public Collection<BOBundleOperation> getBundleOperations()
      Returns all bundle operations in the cache.
      Returns:
      collection of BOBundleOperation
    • getBundleOperationById

      public BOBundleOperation getBundleOperationById(Long bundleOperationId)
      Finds a bundle operation by its ID.
      Parameters:
      bundleOperationId - the bundle operation ID to search for
      Returns:
      the BOBundleOperation or null if not found
    • getBundleOperationsByWorkOrderOperation

      public List<BOBundleOperation> getBundleOperationsByWorkOrderOperation(Long workOrderOperationId)
      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

      public BOBundleOperation getActiveOperationByWorkOrderOperationId(Long woId)
      Returns the active BOBundleOperation related to the given work order operation id.
      Parameters:
      woId - the work order operation id
      Returns:
      the corresponding BOBundleOperation, null if no such BOBundleOperation exists
    • getBundleOperationsByBundleId

      public Collection<BOBundleOperation> getBundleOperationsByBundleId(Long bundleId)
      Returns all bundle operations for a specific bundle ID.
      Parameters:
      bundleId - the bundle ID to filter by
      Returns:
      collection of BOBundleOperation for the specified bundle
    • getWorkOrderHeaders

      public Collection<BOWorkOrderHeader> getWorkOrderHeaders()
      Returns all work order headers in the cache.
      Returns:
      collection of BOWorkOrderHeader
    • getWorkOrderHeaderById

      public BOWorkOrderHeader getWorkOrderHeaderById(Long workOrderId)
      Finds a work order header by its ID.
      Parameters:
      workOrderId - the work order ID to search for
      Returns:
      the BOWorkOrderHeader or null if not found
    • getWorkOrderOperations

      public Collection<BOWorkOrderOperation> getWorkOrderOperations()
      Returns all work order operations in the cache.
      Returns:
      collection of BOWorkOrderOperation
    • getWorkOrderOperationById

      public BOWorkOrderOperation getWorkOrderOperationById(Long workOrderOperationId)
      Finds a work order operation by its ID.
      Parameters:
      workOrderOperationId - the work order operation ID to search for
      Returns:
      the BOWorkOrderOperation or null if not found
    • getAppointments

      public Collection<BOAppointment> getAppointments()
      Returns all appointments in the cache.
      Returns:
      collection of BOAppointment
    • getAppointmentByWorkOrderOperation

      public BOAppointment getAppointmentByWorkOrderOperation(Long workOrderOperationId)
      Finds an appointment by its associated work order operation ID.
      Parameters:
      workOrderOperationId - the work order operation ID to search for
      Returns:
      the BOAppointment or null if not found
    • getInterventions

      public Collection<InterventionAggregate> getInterventions()
      Returns all interventions in the cache.
      Returns:
      collection of InterventionAggregate
    • getInterventionByAppointment

      public InterventionAggregate getInterventionByAppointment(Long appointmentId)
      Finds an intervention by its associated appointment ID.
      Parameters:
      appointmentId - the appointment ID to search for
      Returns:
      the first InterventionAggregate or null if not found
    • getIntervention

      public InterventionAggregate getIntervention(Long interventionId)
      Finds an intervention by its ID.
      Parameters:
      interventionId - the intervention ID to search for
      Returns:
      the InterventionAggregate or null if not found
    • getInterventionResources

      public Collection<BOInterventionResource> getInterventionResources()
      Returns all intervention resources in the cache.
      Returns:
      collection of BOInterventionResource
    • getInterventionResourceByIntervention

      public BOInterventionResource getInterventionResourceByIntervention(Long interventionId)
      Finds an intervention resource by its associated intervention ID.
      Parameters:
      interventionId - the intervention ID to search for
      Returns:
      the BOInterventionResource or null if not found