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

All Known Implementing Classes:
ResponseDAO

public interface IResponseDAO

interface IResponseDAO


Method Summary
 void anonymizeEntries(List<Integer> listIdEntries, Timestamp dateCleanTo, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Anonymize entries of responses
 void delete(int nIdFormSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete all response associate to the form submit whose identifier is specified in parameter
 int getMaxNumber(int nIdEntry, int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the max number from a given id form
 List<StatisticEntrySubmit> getStatisticByIdEntry(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          return a list of statistic on the entry
 void insert(Response response, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 Response load(int nIdResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of the response from the table
 List<Response> selectListByFilter(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
 void store(Response response, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the the response in the table
 

Method Detail

insert

void insert(Response response,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
response - instance of the Response object to insert
plugin - the plugin

load

Response load(int nIdResponse,
              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the response from the table

Parameters:
nIdResponse - The identifier of the entry
plugin - the plugin
Returns:
the instance of the Entry

delete

void delete(int nIdFormSubmit,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete all response associate to the form submit whose identifier is specified in parameter

Parameters:
nIdFormSubmit - The identifier of the formSubmit
plugin - the plugin

store

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

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

selectListByFilter

List<Response> selectListByFilter(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 filter
plugin - the plugin
Returns:
the list of response

getStatisticByIdEntry

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 entry
plugin - the plugin
Returns:
return a list of statistic on the entry

getMaxNumber

int getMaxNumber(int nIdEntry,
                 int nIdForm,
                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the max number from a given id form

Parameters:
nIdEntry - the id of the entry
nIdForm - the id form
plugin - Plugin
Returns:
the max number

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


Copyright © 2013 Mairie de Paris. All Rights Reserved.