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

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

public final class FormHome
extends java.lang.Object

This class provides instances management methods (create, find, ...) for ReportingProject objects


Method Summary
static void copy(Form form, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Copy of an instance of Form
static int create(Form form, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of Form
static Form findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of a Form whose identifier is specified in parameter
static java.util.List<Form> getFormList(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
static fr.paris.lutece.util.ReferenceList getFormList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all enable form returns them in a reference list
static java.util.Map<java.lang.Integer,fr.paris.lutece.portal.business.style.Theme> getXPageThemes(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the xpage themes for all forms
static void remove(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove the form whose identifier is specified in parameter
static void update(Form form, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update of the form 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(Form form,
                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of Form

Parameters:
form - The instance of the Form which contains the informations to store
plugin - the Plugin
Returns:
The primary key of the new form.

copy

public static void copy(Form form,
                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Copy of an instance of Form

Parameters:
form - The instance of the Form who must copy
plugin - the Plugin

update

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

Parameters:
form - The instance of the Form which contains the informations to update
plugin - the Plugin

remove

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

Parameters:
nIdForm - The form Id
plugin - the Plugin

findByPrimaryKey

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

Parameters:
nKey - The entry primary key
plugin - the Plugin
Returns:
an instance of Form

getFormList

public static java.util.List<Form> getFormList(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

getFormList

public static fr.paris.lutece.util.ReferenceList getFormList(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 enable form

getXPageThemes

public static java.util.Map<java.lang.Integer,fr.paris.lutece.portal.business.style.Theme> getXPageThemes(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the xpage themes for all forms



Copyright © 2011 Mairie de Paris. All Rights Reserved.