Class TemplateDisplayHome


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void create​(fr.paris.lutece.plugins.forms.business.FormDisplay formDisplay)
      Create an instance of the formDisplay class
      static fr.paris.lutece.plugins.forms.business.FormDisplay findByPrimaryKey​(int nKey)
      Returns an instance of a formDisplay whose identifier is specified in parameter
      static fr.paris.lutece.plugins.forms.business.FormDisplay getFormDisplayByStepAndComposite​(int nIdStep, int nIdComposite)
      Return the FormDisplay associated to the given parameters
      static List<fr.paris.lutece.plugins.forms.business.FormDisplay> getFormDisplayByTemplate​(int nIdTemplate)
      Return the FormDisplay associated to the given parameters
      static List<fr.paris.lutece.plugins.forms.business.FormDisplay> getFormDisplayListByParent​(int nIdTemplate, int nIdParent)
      Load the data of all the formDisplay that are direct children of a given parent and returns them as a list
      static fr.paris.lutece.util.ReferenceList getGroupDisplayReferenceListByStep​(int nIdTemplate)
      Load the data of all the FormDisplay objects of type "Group" linked to a given FormStep and returns them as a referenceList
      static void initConditionalDisplayForFormDisplay​(fr.paris.lutece.plugins.forms.business.FormDisplay formDisplay)
      Inits the Conditional display for a given form display
      static void remove​(int nKey)
      Remove the formDisplay whose identifier is specified in parameter
      static void update​(fr.paris.lutece.plugins.forms.business.FormDisplay formDisplay)
      Update of the formDisplay which is specified in parameter
    • Method Detail

      • create

        public static void create​(fr.paris.lutece.plugins.forms.business.FormDisplay formDisplay)
        Create an instance of the formDisplay class
        Parameters:
        formDisplay - The instance of the FormDisplay which contains the informations to store
      • update

        public static void update​(fr.paris.lutece.plugins.forms.business.FormDisplay formDisplay)
        Update of the formDisplay which is specified in parameter
        Parameters:
        formDisplay - The instance of the FormDisplay which contains the data to store
      • remove

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

        public static fr.paris.lutece.plugins.forms.business.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
      • getFormDisplayListByParent

        public static List<fr.paris.lutece.plugins.forms.business.FormDisplay> getFormDisplayListByParent​(int nIdTemplate,
                                                                                                          int nIdParent)
        Load the data of all the formDisplay that are direct children of a given parent and returns them as a list
        Parameters:
        nIdTemplate - The step primary key
        nIdParent - The parent primary key
        Returns:
        the list which contains the data of all the formDisplay objects by parent
      • getGroupDisplayReferenceListByStep

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

        public static void initConditionalDisplayForFormDisplay​(fr.paris.lutece.plugins.forms.business.FormDisplay formDisplay)
        Inits the Conditional display for a given form display
        Parameters:
        formDisplay - the form display to init
      • getFormDisplayByStepAndComposite

        public static fr.paris.lutece.plugins.forms.business.FormDisplay getFormDisplayByStepAndComposite​(int nIdStep,
                                                                                                          int nIdComposite)
        Return the FormDisplay associated to the given parameters
        Parameters:
        nIdStep - The identifier of the Step to match
        nIdComposite - The identifier of the Composite to match
        Returns:
        the formDisplay associated to the given parameters
      • getFormDisplayByTemplate

        public static List<fr.paris.lutece.plugins.forms.business.FormDisplay> getFormDisplayByTemplate​(int nIdTemplate)
        Return the FormDisplay associated to the given parameters
        Parameters:
        nIdTemplate - The identifier of the template to match
        Returns:
        the formDisplay associated to the given parameters