Class TemplateService

    • Constructor Detail

      • TemplateService

        public TemplateService()
    • Method Detail

      • getTemplateCompositeList

        public List<fr.paris.lutece.plugins.forms.web.ICompositeDisplay> getTemplateCompositeList​(int nIdTemplate)
        Description copied from interface: ITemplateService
        Get the full children composite list of the given template
        Specified by:
        getTemplateCompositeList in interface ITemplateService
        Parameters:
        nIdTemplate - The template primary key
        Returns:
        the Html of the given template
      • templateDisplayToComposite

        public fr.paris.lutece.plugins.forms.web.ICompositeDisplay templateDisplayToComposite​(fr.paris.lutece.plugins.forms.business.FormDisplay templateDisplay,
                                                                                              int nIterationNumber)
        Description copied from interface: ITemplateService
        Get the right composite from the given templateDisplay
        Specified by:
        templateDisplayToComposite in interface ITemplateService
        Parameters:
        templateDisplay - The templateDisplay
        nIterationNumber - the iteration number
        Returns:
        the right composite
      • deleteTemplate

        public void deleteTemplate​(int nIdTemplate)
        Description copied from interface: ITemplateService
        Remove a given template and the all its formDisplays. The responses, group/question associated to the displays will be deleted. All the descendants of the displays will also be removed
        Specified by:
        deleteTemplate in interface ITemplateService
        Parameters:
        nIdTemplate - The Template Id