fr.paris.lutece.plugins.form.business
Interface IFormSubmitDAO

All Known Implementing Classes:
FormSubmitDAO

public interface IFormSubmitDAO

Interface IFormSubmitDAO


Method Summary
 void anonymizeEntries(List<Integer> listIdEntries, Timestamp dateCleanTo, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Anonymize entries of responses
 void associateResponseWithFormSubmit(int nIdResponse, int nIdFormSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Associate a response with a form submit
 void delete(int nIdFormResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void deleteResponses(int nIdFormSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete responses and files associated with a form submit
 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
 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
 int insert(FormSubmit formResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 FormSubmit load(int nIdFormResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of the formResponse from the table
 void removeResponseFormSubmitAssociation(int nIdResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove the association between a response and a form submit
 int selectCountByFilter(fr.paris.lutece.plugins.genericattributes.business.ResponseFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the formResponse who verify the filter and returns them in a list
 List<FormSubmit> selectListByFilter(fr.paris.lutece.plugins.genericattributes.business.ResponseFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the formResponse who verify the filter and returns them in a list
 List<StatisticFormSubmit> selectStatisticFormSubmit(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
 void store(FormSubmit formResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the the formResponse in the table
 

Method Detail

insert

int insert(FormSubmit formResponse,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
formResponse - instance of the formResponse object to insert
plugin - the plugin
Returns:
the key of the new formResponse

load

FormSubmit load(int nIdFormResponse,
                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the formResponse from the table

Parameters:
nIdFormResponse - The identifier of the formResponse
plugin - the plugin
Returns:
the instance of the formResponse

delete

void delete(int nIdFormResponse,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Parameters:
nIdFormResponse - The identifier of the formResponse
plugin - the plugin

deleteResponses

void deleteResponses(int nIdFormSubmit,
                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete responses and files associated with a form submit

Parameters:
nIdFormSubmit - The if of the form submit to remove
plugin - The plugin

store

void store(FormSubmit formResponse,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the the formResponse in the table

Parameters:
formResponse - instance of the formResponse object to update
plugin - the plugin

selectListByFilter

List<FormSubmit> selectListByFilter(fr.paris.lutece.plugins.genericattributes.business.ResponseFilter filter,
                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the formResponse who verify the filter and returns them in a list

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

selectCountByFilter

int selectCountByFilter(fr.paris.lutece.plugins.genericattributes.business.ResponseFilter filter,
                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the formResponse who verify the filter and returns them in a list

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

selectStatisticFormSubmit

List<StatisticFormSubmit> selectStatisticFormSubmit(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

findFormSubmitFromResponseId

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

anonymizeEntries

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

getResponseListFromIdFormSubmit

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

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

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.