java.lang.Object
overit.geocall.model.DynO
overit.geocallapp.wfm.orchestrator.workorders.bl.resourcewithintervention.ResourceWithIntervention
All Implemented Interfaces:
ConstraintValidator<DynO.Valid,DynO>, Serializable, overit.geocall.timezone.model.TimeZoned

public class ResourceWithIntervention extends DynO
Represents a resource with its associated interventions.
This class models the relationship between a resource (typically a worker or team member) and the interventions assigned to that resource. For each intervention, it tracks whether the resource serves as a team leader or as a regular team member.
Since:
18.0
See Also:
  • Constructor Details

    • ResourceWithIntervention

      public ResourceWithIntervention()
  • Method Details

    • getResource

      public Long getResource()
      Gets the ID of the resource. This ID uniquely identifies the resource (worker or team member) to which the interventions in this object are assigned.
      Returns:
      the ID of the resource
    • setResource

      public void setResource(Long resource)
      Sets the ID of the resource. This method assigns the ID that uniquely identifies the resource (worker or team member) to which the interventions in this object are assigned.
      Parameters:
      resource - the ID of the resource to set
    • getInterventions

      public Collection<InterventionTeamLeader> getInterventions()
      Gets the collection of interventions associated with this resource. Each InterventionTeamLeader in the collection represents an intervention assigned to this resource, along with information about whether the resource serves as a team leader for that intervention.
      Returns:
      a collection of interventions associated with this resource
    • setInterventions

      public void setInterventions(Collection<InterventionTeamLeader> interventions)
      Sets the collection of interventions associated with this resource. This method assigns the interventions that are associated with this resource. Each InterventionTeamLeader in the collection represents an intervention assigned to this resource, along with information about whether the resource serves as a team leader for that intervention.
      Parameters:
      interventions - the collection of interventions to associate with this resource