fr.paris.lutece.plugins.form.business
Class FormSubmitHome

java.lang.Object
  extended by fr.paris.lutece.plugins.form.business.FormSubmitHome

public final class FormSubmitHome
extends Object

class FormSubmitHome


Method Summary
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 removeFormSubmitResponse(int nIdFormSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove the association between form responses and form submit
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static int create(FormSubmit formSubmit,
                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of formSubmit

Parameters:
formSubmit - The instance of the formSubmit which contains the informations to store
plugin - the Plugin
Returns:
the id of the new form submit

update

public static void update(FormSubmit formSubmit,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the formSubmit which is specified in parameter

Parameters:
formSubmit - The instance of the FormSubmit which contains the informations to update
plugin - the Plugin

remove

public static void remove(int nIdFormSubmit,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the formSubmit whose identifier is specified in parameter

Parameters:
nIdFormSubmit - The formSubmitId
plugin - the Plugin

removeFormSubmitResponse

public static void removeFormSubmitResponse(int nIdFormSubmit,
                                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the association between form responses and form submit

Parameters:
nIdFormSubmit - The id of the form submit
plugin - The plugin

findByPrimaryKey

public static FormSubmit findByPrimaryKey(int nKey,
                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a FormSubmitwhose identifier is specified in parameter

Parameters:
nKey - The formResponse primary key
plugin - the Plugin
Returns:
an instance of FormResponse

getFormSubmitList

public 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

Parameters:
filter - the filter
plugin - the plugin
Returns:
the list of formSubmit

getCountFormSubmit

public 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

Parameters:
filter - the filter
plugin - the plugin
Returns:
the list of formSubmit

getStatisticFormSubmit

public 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

Parameters:
filter - the filter
plugin - the plugin
Returns:
the list of statistic

anonymizeEntries

public static void anonymizeEntries(List<Integer> listIdEntries,
                                    Timestamp dateCleanTo,
                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Anonymize entries of responses

Parameters:
listIdEntries - The list of id of entries to anonymize responses of
dateCleanTo - Anonymize responses posted before this date
plugin - The plugin

findFormSubmitFromResponseId

public 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

Parameters:
nIdResponse - The id of the response
plugin - The plugin
Returns:
The form submit, or null if no form submit is associated with the given response

getResponseListFromIdFormSubmit

public 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

Parameters:
nIdFormSubmit - The id of the form submit
plugin - The plugin
Returns:
The list of response id, or an empty list if no response is associated with the form submit

associateResponseWithFormSubmit

public static void associateResponseWithFormSubmit(int nIdResponse,
                                                   int nIdFormSubmit,
                                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Associate a response with a form submit

Parameters:
nIdResponse - The id of the response
nIdFormSubmit - The id of the form submit
plugin - The plugin

removeResponseFormSubmitAssociation

public static void removeResponseFormSubmitAssociation(int nIdResponse,
                                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the association between a response and a form submit

Parameters:
nIdResponse - The id of the response
plugin - The plugin


Copyright © 2014 Mairie de Paris. All Rights Reserved.