Class TemplateDisplayDAO

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void insert​(fr.paris.lutece.plugins.forms.business.FormDisplay templateDisplay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      fr.paris.lutece.plugins.forms.business.FormDisplay load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      fr.paris.lutece.plugins.forms.business.FormDisplay selectFormDisplayByStepAndComposite​(int nIdStep, int nIdComposite, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Select the FormDisplay associated to the given parameter
      List<fr.paris.lutece.plugins.forms.business.FormDisplay> selectFormDisplayListByParent​(int nIdTemplate, int nIdParent, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the FormDisplay objects by parent for a form step and returns them as a list
      List<fr.paris.lutece.plugins.forms.business.FormDisplay> selectFormDisplayListByTemplate​(int nIdTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Return the FormDisplay associated to the given parameters
      fr.paris.lutece.util.ReferenceList selectGroupDisplayReferenceListByStep​(int nIdStep, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the FormDisplay objects of type "Group" linked to a given FormStep and returns them as a referenceList
      void store​(fr.paris.lutece.plugins.forms.business.FormDisplay templateDisplay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
    • Constructor Detail

      • TemplateDisplayDAO

        public TemplateDisplayDAO()
    • Method Detail

      • insert

        public void insert​(fr.paris.lutece.plugins.forms.business.FormDisplay templateDisplay,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Specified by:
        insert in interface ITemplateFormDisplayDAO
        Parameters:
        templateDisplay - instance of the FormDisplay object to insert
        plugin - the Plugin
      • load

        public fr.paris.lutece.plugins.forms.business.FormDisplay load​(int nKey,
                                                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Specified by:
        load in interface ITemplateFormDisplayDAO
        Parameters:
        nKey - The identifier of the FormDisplay
        plugin - the Plugin
        Returns:
        The instance of the FormDisplay
      • delete

        public void delete​(int nKey,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Specified by:
        delete in interface ITemplateFormDisplayDAO
        Parameters:
        nKey - The identifier of the FormDisplay to delete
        plugin - the Plugin
      • selectGroupDisplayReferenceListByStep

        public fr.paris.lutece.util.ReferenceList selectGroupDisplayReferenceListByStep​(int nIdStep,
                                                                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: ITemplateFormDisplayDAO
        Load the data of all the FormDisplay objects of type "Group" linked to a given FormStep and returns them as a referenceList
        Specified by:
        selectGroupDisplayReferenceListByStep in interface ITemplateFormDisplayDAO
        Parameters:
        nIdStep - the step identifier
        plugin - the plugin to use
        Returns:
        the referenceList which contains the data of all the Display objects of group type
      • store

        public void store​(fr.paris.lutece.plugins.forms.business.FormDisplay templateDisplay,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: ITemplateFormDisplayDAO
        Update the record in the table
        Specified by:
        store in interface ITemplateFormDisplayDAO
        Parameters:
        templateDisplay - the reference of the FormDisplay
        plugin - the Plugin
      • selectFormDisplayListByParent

        public List<fr.paris.lutece.plugins.forms.business.FormDisplay> selectFormDisplayListByParent​(int nIdTemplate,
                                                                                                      int nIdParent,
                                                                                                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the FormDisplay objects by parent for a form step and returns them as a list
        Specified by:
        selectFormDisplayListByParent in interface ITemplateFormDisplayDAO
        Parameters:
        nIdTemplate - the template id
        nIdParent - the parent id
        plugin - the plugin to use
        Returns:
        The list which contains the data of all the FormDisplay objects
      • selectFormDisplayByStepAndComposite

        public fr.paris.lutece.plugins.forms.business.FormDisplay selectFormDisplayByStepAndComposite​(int nIdStep,
                                                                                                      int nIdComposite,
                                                                                                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: ITemplateFormDisplayDAO
        Select the FormDisplay associated to the given parameter
        Specified by:
        selectFormDisplayByStepAndComposite in interface ITemplateFormDisplayDAO
        Parameters:
        nIdStep - The identifier of the Step to match
        nIdComposite - The identifier of the Composite to match
        plugin - The plugin to use to execute the query
        Returns:
        the FormDisplay associated to the given parameter
      • selectFormDisplayListByTemplate

        public List<fr.paris.lutece.plugins.forms.business.FormDisplay> selectFormDisplayListByTemplate​(int nIdTemplate,
                                                                                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: ITemplateFormDisplayDAO
        Return the FormDisplay associated to the given parameters
        Specified by:
        selectFormDisplayListByTemplate in interface ITemplateFormDisplayDAO
        Parameters:
        nIdTemplate - The identifier of the template to match
        Returns:
        the formDisplay associated to the given parameters