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

All Known Implementing Classes:
FormDAO

public interface IFormDAO

IFormDAO Interface


Method Summary
 void delete(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 List<Integer> getAnonymizeEntryList(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the list of entries of a form to anonymize
 fr.paris.lutece.util.ReferenceList getEnableFormList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all enable form returns them in a reference list
 List<Form> getFormListForAutomaticCleaning(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the list of forms that must be cleaned automatically.
 Map<Integer,fr.paris.lutece.portal.business.style.Theme> getXPageThemesMap(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load all the themes for form xpages
 int insert(Form form, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 void insertAnonymizeEntry(int nIdForm, int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert an entry in the anonymize entries table
 Form load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of the Form from the table
 void removeAnonymizeEntry(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove entries in the anonymize entries table
 List<Form> selectFormList(FormFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the form who verify the filter and returns them in a list
 void store(Form form, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the form in the table
 

Method Detail

insert

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

Parameters:
form - instance of the Form to insert
plugin - the plugin
Returns:
the id of the new form

store

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

Parameters:
form - instance of the Form object to update
plugin - the plugin

delete

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

Parameters:
nIdForm - The identifier of the form
plugin - the plugin

load

Form load(int nKey,
          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the Form from the table

Parameters:
nKey - The identifier of the form
plugin - the plugin
Returns:
the instance of the Form

selectFormList

List<Form> selectFormList(FormFilter filter,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the form who verify the filter and returns them in a list

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

getEnableFormList

fr.paris.lutece.util.ReferenceList getEnableFormList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all enable form returns them in a reference list

Parameters:
plugin - the plugin
Returns:
a reference list of form

getXPageThemesMap

Map<Integer,fr.paris.lutece.portal.business.style.Theme> getXPageThemesMap(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load all the themes for form xpages

Parameters:
plugin - the plugin
Returns:
a map containing the themes by form id

getAnonymizeEntryList

List<Integer> getAnonymizeEntryList(int nIdForm,
                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of entries of a form to anonymize

Parameters:
nIdForm - The id of the form
plugin - The plugin
Returns:
The list of ids of entries to anonymize, or an empty list if the form was not fount or if no entries of this form should be anonymized

insertAnonymizeEntry

void insertAnonymizeEntry(int nIdForm,
                          int nIdEntry,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert an entry in the anonymize entries table

Parameters:
nIdForm - The id of the form the entry is associated with
nIdEntry - The id of the entry to anonymize
plugin - The plugin

removeAnonymizeEntry

void removeAnonymizeEntry(int nIdForm,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove entries in the anonymize entries table

Parameters:
nIdForm - The id of the form
plugin - The plugin

getFormListForAutomaticCleaning

List<Form> getFormListForAutomaticCleaning(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of forms that must be cleaned automatically. Only id, automatic cleaning and cleaning by removal attributes or form are fetched.

Parameters:
plugin - The plugin
Returns:
the list of form, or an empty list if no form was found. Only id, automatic cleaning and cleaning by removal attributes or form are fetched.


Copyright © 2013 Mairie de Paris. All Rights Reserved.