Class InterventionTeamLeader
java.lang.Object
overit.geocall.model.DynO
overit.geocallapp.wfm.orchestrator.workorders.bl.resourcewithintervention.InterventionTeamLeader
- All Implemented Interfaces:
ConstraintValidator<DynO.Valid,,DynO> Serializable,overit.geocall.timezone.model.TimeZoned
This class is used to model the relationship between resources and interventions,
specifically tracking whether a resource serves as a team leader (foreman) for a
particular intervention or is just a regular team member (assistant).
- 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 ID of the intervention associated with this resource.booleanIndicates whether the resource is a team leader for this intervention.voidsetInterventionId(Long interventionId) Sets the ID of the intervention associated with this resource.voidsetTeamLeader(boolean teamLeader) Sets whether the resource is a team leader for this intervention.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
-
InterventionTeamLeader
public InterventionTeamLeader()
-
-
Method Details
-
getInterventionId
Gets the ID of the intervention associated with this resource.- Returns:
- the ID of the intervention
-
setInterventionId
Sets the ID of the intervention associated with this resource.- Parameters:
interventionId- the ID of the intervention to set
-
getTeamLeader
public boolean getTeamLeader()Indicates whether the resource is a team leader for this intervention.If true, the resource serves as a team leader (foreman) for the intervention. If false, the resource is a regular team member (assistant).
- Returns:
- true if the resource is a team leader for this intervention, false otherwise
-
setTeamLeader
public void setTeamLeader(boolean teamLeader) Sets whether the resource is a team leader for this intervention.Use true to indicate that the resource serves as a team leader (foreman), or false to indicate that the resource is a regular team member (assistant).
- Parameters:
teamLeader- true if the resource is a team leader, false otherwise
-