Class FormHome
java.lang.Object
fr.paris.lutece.plugins.form.business.FormHome
This class provides instances management methods (create, find, ...) for ReportingProject objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidCopy of an instance of Formstatic intCreation of an instance of Formstatic FormfindByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns an instance of a Form whose identifier is specified in parametergetFormList(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 liststatic fr.paris.lutece.util.ReferenceListgetFormList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all enable form returns them in a reference liststatic voidremove(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove the form whose identifier is specified in parameterstatic voidUpdate of the form which is specified in parameter
-
Method Details
-
create
Creation of an instance of Form- Parameters:
form- The instance of the Form which contains the informations to storeplugin- the Plugin- Returns:
- The primary key of the new form.
-
copy
Copy of an instance of Form- Parameters:
form- The instance of the Form who must copyplugin- the Plugin
-
update
Update of the form which is specified in parameter- Parameters:
form- The instance of the Form which contains the informations to updateplugin- 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 Idplugin- the Plugin
-
findByPrimaryKey
Returns an instance of a Form whose identifier is specified in parameter- Parameters:
nKey- The entry primary keyplugin- the Plugin- Returns:
- an instance of Form
-
getFormList
public static 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 filterplugin- 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
-