Class FormResponseHome

java.lang.Object
fr.paris.lutece.plugins.forms.business.FormResponseHome

public final class FormResponseHome extends Object
This class provides instances management methods (create, find, ...) for FormResponseHome objects
  • Method Details

    • create

      public static FormResponse create(FormResponse formResponse)
      Create an instance of the formResponse class
      Parameters:
      formResponse - The instance of the FormResponse which contains the informations to store
      Returns:
      The instance of formResponse which has been created with its primary key.
    • update

      public static FormResponse update(FormResponse formResponse)
      Update of the formResponse which is specified in parameter
      Parameters:
      formResponse - The instance of the FormResponse which contains the data to store
      Returns:
      The instance of the formResponse which has been updated
    • remove

      public static void remove(int nKey)
      Remove the formResponse whose identifier is specified in parameter
      Parameters:
      nKey - The formResponse Id
    • findByPrimaryKey

      public static FormResponse findByPrimaryKey(int nKey)
      Returns an instance of a formResponse whose identifier is specified in parameter
      Parameters:
      nKey - The formResponse primary key
      Returns:
      an instance of FormResponse
    • loadById

      public static FormResponse loadById(int nKey)
      Returns an instance of a formResponse whose identifier is specified in parameter
      Doesn't load the list of FormResponseStep
      Parameters:
      nKey - The formResponse primary key
      Returns:
      an instance of FormResponse
    • findByPrimaryKeyForIndex

      public static FormResponse findByPrimaryKeyForIndex(int nKey)
      Returns an instance of a formResponse whose identifier is specified in parameter
      Parameters:
      nKey - The formResponse primary key
      Returns:
      an instance of FormResponse
    • findUncompleteByPrimaryKey

      public static FormResponse findUncompleteByPrimaryKey(int nKey)
      Returns an instance of a uncomplete (without steps) formResponse whose identifier is specified in parameter
      Parameters:
      nKey - The formResponse primary key
      Returns:
      an instance of FormResponse
    • selectAllFormResponses

      public static List<FormResponse> selectAllFormResponses()
      Returns all the formResponse objects, completed with the steps
      Returns:
      all the formResponse objects completed with the steps
    • selectAllFormResponsesId

      public static List<Integer> selectAllFormResponsesId()
      Returns all the formResponse ids
      Returns:
      all the formResponse ids
    • selectAllFormResponsesUncompleteByIdForm

      public static List<FormResponse> selectAllFormResponsesUncompleteByIdForm(int nIdForm)
      Returns all the formResponse objects, completed with the steps
      Parameters:
      nIdForm - the id form
      Returns:
      all the formResponse objects completed with the steps
    • getFormResponseByGuidAndForm

      public static List<FormResponse> getFormResponseByGuidAndForm(String strGuid, int nIdForm, boolean fromBackup)
      Load the data of all the formResponse objects and returns them as a list
      Parameters:
      strGuid - The user Guid
      nIdForm - The form primary key
      fromBackup -
      Returns:
      the formResponse objects
    • getFormResponseByAdminAndForm

      public static List<FormResponse> getFormResponseByAdminAndForm(String strAdmin, int nIdForm, boolean fromBackup)
      Load the data of all the formResponse objects and returns them as a list
      Parameters:
      strGuid - The user Guid
      nIdForm - The form primary key
      fromBackup -
      Returns:
      the formResponse objects
    • getFormResponseUncompleteByGuid

      public static List<FormResponse> getFormResponseUncompleteByGuid(String strGuid)
      Load the data of all the formResponse uncomplete objects and returns them as a list
      Parameters:
      strGuid - The user Guid
      Returns:
      the formResponse objects
    • getFormResponseUncompleteByRole

      public static List<FormResponse> getFormResponseUncompleteByRole(List<String> listRole)
      Load the data of all the FormResponse uncomplete objects by front office role and returns them as a list
      Parameters:
      listRole - the given role FO
      Returns:
      The list which contains the data of the FormResponse objects
    • getFormResponseByGuid

      public static List<FormResponse> getFormResponseByGuid(String strGuid)
      Load the data of all the formResponse objects and returns them as a list
      Parameters:
      strGuid - The user Guid
      Returns:
      the formResponse objects
    • getFormResponseByRole

      public static List<FormResponse> getFormResponseByRole(List<String> listRole)
      Load the data of all the FormResponse objects by front office role and returns them as a list
      Parameters:
      strRole - the given role FO
      Returns:
      The list which contains the data of all the FormResponse objects
    • getFormResponseUncompleteByPrimaryKeyList

      public static List<FormResponse> getFormResponseUncompleteByPrimaryKeyList(List<Integer> listIdFormResponse)
      Load the data of all formResponses Objects for a given list of formResponses identifiers
      Parameters:
      listIdFormResponse - The list of formResponses identifiers
      Returns:
      the formResponse objects
    • removeByForm

      public static void removeByForm(int nIdForm)
      Remove all the formResponse linked to a given Form
      Parameters:
      nIdForm - The form Identifier