Class ResourceWithIntervention
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
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.
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class overit.geocall.model.DynO
DynO.SpanFields, DynO.SpanTable, DynO.Valid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the collection of interventions associated with this resource.Gets the ID of the resource.voidsetInterventions(Collection<InterventionTeamLeader> interventions) Sets the collection of interventions associated with this resource.voidsetResource(Long resource) Sets the ID of the resource.Methods inherited from class overit.geocall.model.DynO
addExtension, extract, extract, fields, from, from, getCriteria, getCriteriaNotExploded, getExtension, getFakeFilter, getUnknownAttributes, getUnknownCriteria, getVariant, getZone, insert, insert, isValid, make, removeCriteria, removeExtensionAttribute, setCriteria, setCriteriaNotExploded, setExtension, setFakeFilter, setUnknownAttributes, setUnknownCriteria, setVariant, setZone, toFlatMap, toFlatMap, toMap, toMap, toString, update, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.validation.ConstraintValidator
initializeMethods inherited from interface overit.geocall.timezone.model.TimeZoned
hasZone
-
Constructor Details
-
ResourceWithIntervention
public ResourceWithIntervention()
-
-
Method Details
-
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
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
Gets the collection of interventions associated with this resource. EachInterventionTeamLeaderin 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
Sets the collection of interventions associated with this resource. This method assigns the interventions that are associated with this resource. EachInterventionTeamLeaderin 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
-