Interface IStepDAO

All Known Implementing Classes:
StepDAO

public interface IStepDAO
IStepDAO Interface
  • Method Summary

    Modifier and Type
    Method
    Description
    countFinalStepsByFormIds(List<Integer> formIds, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Counts final steps for each form ID.
    int
    countOtherFinalSteps(int idForm, int idStepToExclude, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Counts other final steps of a form, excluding the given step ID.
    void
    delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table
    void
    insert(Step step, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new record in the table.
    load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    selectFinalStepList(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load finals steps list of the given form
    selectIdStepsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the id of all the step objects and returns them as a list
    selectIdStepsListByForm(int nFormId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the id of all the step linked a given parent form and returns them as a list
    selectInitialStep(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the initial step of the given form
    fr.paris.lutece.util.ReferenceList
    selectStepReferenceListbyForm(int nFormId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the id and title of all the step linked a given parent form and returns them as a Referencelist
    selectStepsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the step objects and returns them as a list
    selectStepsListbyForm(int nFormId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the id of all the step linked a given parent form and returns them as a list
    fr.paris.lutece.util.ReferenceList
    selectStepsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the step objects and returns them as a referenceList
    void
    store(Step step, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Update the record in the table
  • Method Details

    • insert

      void insert(Step step, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Parameters:
      step - instance of the Step object to insert
      plugin - the Plugin
    • store

      void store(Step step, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Parameters:
      step - the reference of the Step
      plugin - the Plugin
    • delete

      void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Parameters:
      nKey - The identifier of the Step to delete
      plugin - the Plugin
    • load

      Step load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Parameters:
      nKey - The identifier of the step
      plugin - the Plugin
      Returns:
      The instance of the step
    • selectInitialStep

      Step selectInitialStep(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the initial step of the given form
      Parameters:
      nIdForm - The identifier of the step form
      plugin - the Plugin
      Returns:
      The initial step of the given form
    • selectFinalStepList

      List<Step> selectFinalStepList(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load finals steps list of the given form
      Parameters:
      nIdForm - The identifier of the step form
      plugin - the Plugin
      Returns:
      List of finals steps of the given form
    • selectStepsList

      List<Step> selectStepsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the step objects and returns them as a list
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the data of all the step objects
    • selectIdStepsList

      List<Integer> selectIdStepsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the step objects and returns them as a list
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the id of all the step objects
    • selectIdStepsListByForm

      List<Integer> selectIdStepsListByForm(int nFormId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the step linked a given parent form and returns them as a list
      Parameters:
      nFormId - the parent form identifier
      plugin - the Plugin
      Returns:
      The List which contains the id of all the step objects
    • selectStepsReferenceList

      fr.paris.lutece.util.ReferenceList selectStepsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the step objects and returns them as a referenceList
      Parameters:
      plugin - the Plugin
      Returns:
      The referenceList which contains the data of all the step objects
    • selectStepsListbyForm

      List<Step> selectStepsListbyForm(int nFormId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the step linked a given parent form and returns them as a list
      Parameters:
      nFormId - the parent form identifier
      plugin - the Plugin
      Returns:
      The list which contains the id of all the step objects
    • selectStepReferenceListbyForm

      fr.paris.lutece.util.ReferenceList selectStepReferenceListbyForm(int nFormId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id and title of all the step linked a given parent form and returns them as a Referencelist
      Parameters:
      nFormId - the parent form identifier
      plugin - the Plugin
      Returns:
      The Referencelist which contains the id and titles of all the step objects
    • countFinalStepsByFormIds

      Map<Integer,Integer> countFinalStepsByFormIds(List<Integer> formIds, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Counts final steps for each form ID.
      Parameters:
      formIds - list of form IDs
      plugin - plugin
      Returns:
      map: formId -> count of final steps
    • countOtherFinalSteps

      int countOtherFinalSteps(int idForm, int idStepToExclude, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Counts other final steps of a form, excluding the given step ID.
      Parameters:
      idForm - form ID
      idStepToExclude - step ID to exclude
      plugin - plugin
      Returns:
      number of other final steps