public final class FormSubmitHome extends Object
Modifier and Type | Method and Description |
---|---|
static void |
anonymizeEntries(List<Integer> listIdEntries,
Timestamp dateCleanTo,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Anonymize entries of responses
|
static void |
associateResponseWithFormSubmit(int nIdResponse,
int nIdFormSubmit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Associate a response with a form submit
|
static int |
create(FormSubmit formSubmit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of formSubmit
|
static FormSubmit |
findByPrimaryKey(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a FormSubmitwhose identifier is specified in
parameter
|
static FormSubmit |
findFormSubmitFromResponseId(int nIdResponse,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find a form submit from the id of a response associated with it
|
static int |
getCountFormSubmit(fr.paris.lutece.plugins.genericattributes.business.ResponseFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the formSubmit who verify the filter and returns
them in a list
|
static List<FormSubmit> |
getFormSubmitList(fr.paris.lutece.plugins.genericattributes.business.ResponseFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the formSubmit who verify the filter and returns
them in a list
|
static List<Integer> |
getResponseListFromIdFormSubmit(int nIdFormSubmit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of id of responses associated with a form submit
|
static List<StatisticFormSubmit> |
getStatisticFormSubmit(fr.paris.lutece.plugins.genericattributes.business.ResponseFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the number of formSubmit who verify the filter and returns them in a
list of statistic
|
static void |
remove(int nIdFormSubmit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the formSubmit whose identifier is specified in parameter
|
static void |
removeResponseFormSubmitAssociation(int nIdResponse,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the association between a response and a form submit
|
static void |
update(FormSubmit formSubmit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the formSubmit which is specified in parameter
|
public static int create(FormSubmit formSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
formSubmit
- The instance of the formSubmit which contains the
informations to storeplugin
- the Pluginpublic static void update(FormSubmit formSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
formSubmit
- The instance of the FormSubmit which contains the
informations to updateplugin
- the Pluginpublic static void remove(int nIdFormSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdFormSubmit
- The formSubmitIdplugin
- the Pluginpublic static FormSubmit findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nKey
- The formResponse primary keyplugin
- the Pluginpublic static List<FormSubmit> getFormSubmitList(fr.paris.lutece.plugins.genericattributes.business.ResponseFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
filter
- the filterplugin
- the pluginpublic static int getCountFormSubmit(fr.paris.lutece.plugins.genericattributes.business.ResponseFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
filter
- the filterplugin
- the pluginpublic static List<StatisticFormSubmit> getStatisticFormSubmit(fr.paris.lutece.plugins.genericattributes.business.ResponseFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
filter
- the filterplugin
- the pluginpublic static void anonymizeEntries(List<Integer> listIdEntries, Timestamp dateCleanTo, fr.paris.lutece.portal.service.plugin.Plugin plugin)
listIdEntries
- The list of id of entries to anonymize responses ofdateCleanTo
- Anonymize responses posted before this dateplugin
- The pluginpublic static FormSubmit findFormSubmitFromResponseId(int nIdResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdResponse
- The id of the responseplugin
- The pluginpublic static List<Integer> getResponseListFromIdFormSubmit(int nIdFormSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdFormSubmit
- The id of the form submitplugin
- The pluginpublic static void associateResponseWithFormSubmit(int nIdResponse, int nIdFormSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdResponse
- The id of the responsenIdFormSubmit
- The id of the form submitplugin
- The pluginpublic static void removeResponseFormSubmitAssociation(int nIdResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdResponse
- The id of the responseplugin
- The pluginCopyright © 2016 City of Paris. All rights reserved.