Class FormResponseHome
java.lang.Object
fr.paris.lutece.plugins.forms.business.FormResponseHome
This class provides instances management methods (create, find, ...) for FormResponseHome objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic FormResponsecreate(FormResponse formResponse) Create an instance of the formResponse classstatic FormResponsefindByPrimaryKey(int nKey) Returns an instance of a formResponse whose identifier is specified in parameterstatic FormResponsefindByPrimaryKeyForIndex(int nKey) Returns an instance of a formResponse whose identifier is specified in parameterstatic FormResponsefindUncompleteByPrimaryKey(int nKey) Returns an instance of a uncomplete (without steps) formResponse whose identifier is specified in parameterstatic List<FormResponse>getFormResponseByAdminAndForm(String strAdmin, int nIdForm, boolean fromBackup) Load the data of all the formResponse objects and returns them as a liststatic List<FormResponse>getFormResponseByGuid(String strGuid) Load the data of all the formResponse objects and returns them as a liststatic List<FormResponse>getFormResponseByGuidAndForm(String strGuid, int nIdForm, boolean fromBackup) Load the data of all the formResponse objects and returns them as a liststatic List<FormResponse>getFormResponseByRole(List<String> listRole) Load the data of all the FormResponse objects by front office role and returns them as a liststatic List<FormResponse>getFormResponseUncompleteByGuid(String strGuid) Load the data of all the formResponse uncomplete objects and returns them as a liststatic List<FormResponse>getFormResponseUncompleteByPrimaryKeyList(List<Integer> listIdFormResponse) Load the data of all formResponses Objects for a given list of formResponses identifiersstatic List<FormResponse>getFormResponseUncompleteByRole(List<String> listRole) Load the data of all the FormResponse uncomplete objects by front office role and returns them as a liststatic FormResponseloadById(int nKey) Returns an instance of a formResponse whose identifier is specified in parameter
Doesn't load the list ofFormResponseStepstatic voidremove(int nKey) Remove the formResponse whose identifier is specified in parameterstatic voidremoveByForm(int nIdForm) Remove all the formResponse linked to a given Formstatic List<FormResponse>Returns all the formResponse objects, completed with the stepsReturns all the formResponse idsstatic List<FormResponse>selectAllFormResponsesUncompleteByIdForm(int nIdForm) Returns all the formResponse objects, completed with the stepsstatic FormResponseupdate(FormResponse formResponse) Update of the formResponse which is specified in parameter
-
Method Details
-
create
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
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
Returns an instance of a formResponse whose identifier is specified in parameter- Parameters:
nKey- The formResponse primary key- Returns:
- an instance of FormResponse
-
loadById
Returns an instance of a formResponse whose identifier is specified in parameter
Doesn't load the list ofFormResponseStep- Parameters:
nKey- The formResponse primary key- Returns:
- an instance of FormResponse
-
findByPrimaryKeyForIndex
Returns an instance of a formResponse whose identifier is specified in parameter- Parameters:
nKey- The formResponse primary key- Returns:
- an instance of FormResponse
-
findUncompleteByPrimaryKey
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
Returns all the formResponse objects, completed with the steps- Returns:
- all the formResponse objects completed with the steps
-
selectAllFormResponsesId
Returns all the formResponse ids- Returns:
- all the formResponse ids
-
selectAllFormResponsesUncompleteByIdForm
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 GuidnIdForm- The form primary keyfromBackup-- 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 GuidnIdForm- The form primary keyfromBackup-- Returns:
- the formResponse objects
-
getFormResponseUncompleteByGuid
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
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
Load the data of all the formResponse objects and returns them as a list- Parameters:
strGuid- The user Guid- Returns:
- the formResponse objects
-
getFormResponseByRole
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
-