Class TemplateService
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.modules.template.service.TemplateService
-
- All Implemented Interfaces:
ITemplateService
public class TemplateService extends Object implements ITemplateService
-
-
Constructor Summary
Constructors Constructor Description TemplateService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteTemplate(int nIdTemplate)Remove a given template and the all its formDisplays.List<fr.paris.lutece.plugins.forms.web.ICompositeDisplay>getTemplateCompositeList(int nIdTemplate)Get the full children composite list of the given templatefr.paris.lutece.plugins.forms.web.ICompositeDisplaytemplateDisplayToComposite(fr.paris.lutece.plugins.forms.business.FormDisplay templateDisplay, int nIterationNumber)Get the right composite from the given templateDisplay
-
-
-
Field Detail
-
BEAN_NAME
public static final String BEAN_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTemplateCompositeList
public List<fr.paris.lutece.plugins.forms.web.ICompositeDisplay> getTemplateCompositeList(int nIdTemplate)
Description copied from interface:ITemplateServiceGet the full children composite list of the given template- Specified by:
getTemplateCompositeListin interfaceITemplateService- 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:ITemplateServiceGet the right composite from the given templateDisplay- Specified by:
templateDisplayToCompositein interfaceITemplateService- Parameters:
templateDisplay- The templateDisplaynIterationNumber- the iteration number- Returns:
- the right composite
-
deleteTemplate
public void deleteTemplate(int nIdTemplate)
Description copied from interface:ITemplateServiceRemove 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:
deleteTemplatein interfaceITemplateService- Parameters:
nIdTemplate- The Template Id
-
-