Interface InterventionOutcomeSection
- All Known Implementing Classes:
ActivityOutcomeAccessorData,ActivityOutcomeMeterReadings,AgendaOutcome,overit.geocallapp.wfm.schedulazione.consuntivazione.activity.CActivityOutcomeSectionBase
public interface InterventionOutcomeSection
Define the interface that an intervention outcome
section must implement to be involved in the
outcome process
- Since:
- 9.2
-
Method Summary
Modifier and TypeMethodDescriptionvoidMethod called before that the whole outcome will be saved.Gets the section namevoidinitForIntervention(Intervention intervention, InterventionOutcomeSaveInput storableData, WorkOrder workOrder) Prepare the section to edit the given interventionvoidThis method will be called after the outcome reason selection, for the work orders by orders when all the interventions have an outcome reason with conclusive typevoidThis method will be called after the outcome reason selection, for the work orders by orders when there is at least one interventions with an outcome reason that is not conclusivevoidonOutcomeReasonChanged(Long reason) Notify the section that the outcome reason is just changedvoidprepareSaveData(InterventionOutcomeSaveInput storableData) Allows the section to add its information to the storable data that will be savedvoidreset()Clear the section editing statevoidsetInterventionGroup(BOInterventionGroup interventionGroup) Set the new intervention group to use for the editing of the section.voidsetOwnerContainer(overit.geocallapp.wfm.schedulazione.consuntivazione.activity.CActivityOutcome activityOutcomeCOntainer) Sets the activity outcome container that holds this sectionvalidate(Intervention intervention, InterventionOutcomeSaveInput storableData) Validate the given values collecting the eventually generated exceptions.
-
Method Details
-
setOwnerContainer
void setOwnerContainer(overit.geocallapp.wfm.schedulazione.consuntivazione.activity.CActivityOutcome activityOutcomeCOntainer) Sets the activity outcome container that holds this section- Parameters:
activityOutcomeCOntainer- the container that holds this section
-
reset
void reset()Clear the section editing state -
setInterventionGroup
Set the new intervention group to use for the editing of the section.- Parameters:
interventionGroup- the intervention group to use for the editing of the section- Throws:
DAValidateException- the DA validate exception
-
validate
List<DAValidateException> validate(Intervention intervention, InterventionOutcomeSaveInput storableData) Validate the given values collecting the eventually generated exceptions.- Parameters:
intervention- the intervention to validatestorableData- the storable data- Returns:
- a
ListofDAValidateExceptionrepresenting the validation errors
-
checkForSave
Method called before that the whole outcome will be saved. Is used by the section that handle data related to the whole operations set.- Throws:
DAValidateException- if the check fails
-
prepareSaveData
Allows the section to add its information to the storable data that will be saved- Parameters:
storableData- the storable data to prepare in which the section can put its information
-
getSectionName
String getSectionName()Gets the section name- Returns:
- the section name
-
initForIntervention
void initForIntervention(Intervention intervention, InterventionOutcomeSaveInput storableData, WorkOrder workOrder) Prepare the section to edit the given intervention- Parameters:
intervention- the intervention to editstorableData- the storable data that holds the already edited data. Can be null.workOrder- the intervention's work order
-
onOutcomeReasonChanged
Notify the section that the outcome reason is just changed- Parameters:
reason- the new outcome reason
-
onInterventionWillBeClosed
void onInterventionWillBeClosed()This method will be called after the outcome reason selection, for the work orders by orders when all the interventions have an outcome reason with conclusive type -
onInterventionWillNotBeClosed
void onInterventionWillNotBeClosed()This method will be called after the outcome reason selection, for the work orders by orders when there is at least one interventions with an outcome reason that is not conclusive
-