Class ResponseHome
java.lang.Object
fr.paris.lutece.plugins.form.business.ResponseHome
This class provides instances management methods (create, find, ...) for Response objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidCreation of an instance of responsestatic ResponsefindByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns an instance of a Response whose identifier is specified in parametergetResponseList(ResponseFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the response who verify the filter and returns them in a liststatic List<StatisticEntrySubmit>getStatisticByIdEntry(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin) return a list of statistic on the entrystatic voidremove(int nIdFormSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove all response associate to the form submit whose identifier is specified in parameterstatic voidUpdate of the response which is specified in parameter
-
Method Details
-
create
Creation of an instance of response- Parameters:
response- The instance of the response which contains the informations to storeplugin- the Plugin
-
update
Update of the response which is specified in parameter- Parameters:
response- The instance of the Response which contains the informations to updateplugin- the Plugin
-
remove
public static void remove(int nIdFormSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove all response associate to the form submit whose identifier is specified in parameter- Parameters:
nIdFormSubmit- The formSubmitKeyplugin- the Plugin
-
findByPrimaryKey
public static Response findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns an instance of a Response whose identifier is specified in parameter- Parameters:
nKey- The entry primary keyplugin- the Plugin- Returns:
- an instance of Response
-
getResponseList
public static List<Response> getResponseList(ResponseFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the response who verify the filter and returns them in a list- Parameters:
filter- the filterplugin- the plugin- Returns:
- the list of response
-
getStatisticByIdEntry
public static List<StatisticEntrySubmit> getStatisticByIdEntry(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin) return a list of statistic on the entry- Parameters:
nIdEntry- the id of the entryplugin- the plugin- Returns:
- return a list of statistic on the entry
-