Class FormDisplayHome

java.lang.Object
fr.paris.lutece.plugins.forms.business.FormDisplayHome

public final class FormDisplayHome extends Object
This class provides instances management methods (create, find, ...) for FormDisplay objects
  • Method Details

    • create

      public static FormDisplay create(FormDisplay formDisplay)
      Create an instance of the formDisplay class
      Parameters:
      formDisplay - The instance of the FormDisplay which contains the informations to store
      Returns:
      The instance of formDisplay which has been created with its primary key.
    • update

      public static FormDisplay update(FormDisplay formDisplay)
      Update of the formDisplay which is specified in parameter
      Parameters:
      formDisplay - The instance of the FormDisplay which contains the data to store
      Returns:
      The instance of the formDisplay which has been updated
    • remove

      public static void remove(int nKey)
      Remove the formDisplay whose identifier is specified in parameter
      Parameters:
      nKey - The formDisplay Id
    • findByPrimaryKey

      public static FormDisplay findByPrimaryKey(int nKey)
      Returns an instance of a formDisplay whose identifier is specified in parameter
      Parameters:
      nKey - The formDisplay primary key
      Returns:
      an instance of FormDisplay
    • getFormDisplayList

      public static List<FormDisplay> getFormDisplayList()
      Load the data of all the formDisplay objects and returns them as a list
      Returns:
      the list which contains the data of all the formDisplay objects
    • getFormDisplayListByParent

      public static List<FormDisplay> getFormDisplayListByParent(int nIdStep, int nIdParent)
      Load the data of all the formDisplay that are direct children of a given parent and returns them as a list
      Parameters:
      nIdStep - The step primary key
      nIdParent - The parent primary key
      Returns:
      the list which contains the data of all the formDisplay objects by parent
    • getFormDisplayListByParentOrderByQuestionExportDisplayOrder

      public static List<FormDisplay> getFormDisplayListByParentOrderByQuestionExportDisplayOrder(int nIdStep, int nIdParent)
      Load the data of all the formDisplay from a form step and returns them as a list ordered by export order
      Parameters:
      nIdStep -
      nIdParent - TODO
      Returns:
    • getGroupDisplayReferenceListByStep

      public static fr.paris.lutece.util.ReferenceList getGroupDisplayReferenceListByStep(int nIdStep)
      Load the data of all the FormDisplay objects of type "Group" linked to a given FormStep and returns them as a referenceList
      Parameters:
      nIdStep - the step identifier
      Returns:
      the referenceList which contains the data of all the Display objects of group type
    • getFormDisplayByFormStepAndComposite

      public static FormDisplay getFormDisplayByFormStepAndComposite(int nIdForm, int nIdStep, int nIdComposite)
      Return the FormDisplay associated to the given parameters
      Parameters:
      nIdForm - The identifier of the Form to match
      nIdStep - The identifier of the Step to match
      nIdComposite - The identifier of the Composite to match
      Returns:
      the formDisplay associated to the given parameters
    • initConditionalDisplayForFormDisplay

      public static void initConditionalDisplayForFormDisplay(FormDisplay formDisplay)
      Inits the Conditional display for a given form display
      Parameters:
      formDisplay - the form display to init
    • getFormDisplayByForm

      public static List<FormDisplay> getFormDisplayByForm(int nIdForm)
      Return the FormDisplay associated to the given parameters
      Parameters:
      nIdForm - The identifier of the Form to match
      Returns:
      the formDisplay associated to the given parameters