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 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

      void setInterventionGroup(BOInterventionGroup interventionGroup) throws DAValidateException
      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 validate
      storableData - the storable data
      Returns:
      a List of DAValidateException representing the validation errors
    • checkForSave

      void checkForSave() throws DAValidateException
      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

      void prepareSaveData(InterventionOutcomeSaveInput storableData)
      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 edit
      storableData - the storable data that holds the already edited data. Can be null.
      workOrder - the intervention's work order
    • onOutcomeReasonChanged

      void onOutcomeReasonChanged(Long reason)
      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