Class FormHome

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

public final class FormHome extends Object
This class provides instances management methods (create, find, ...) for ReportingProject objects
  • Method Summary

    Modifier and Type
    Method
    Description
    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 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 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

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • 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 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