Interface TemplateSerializerService
- 
- All Known Implementing Classes:
 TemplateSerializerServiceImpl
public interface TemplateSerializerServiceService Exposing serializer and deserializer used to manipulate template rendering data to be injected in the rendition context. Here are the current service usage :- API request => Inline context preparation : see in
 
RenderWithTemplateOperation - Inline context preparation => store into the
 
TemplateBasedDocument - Context defined on Template creation => store into the
 
TemplateSourceDocument - And finally before rendition to collect data from TemplateSource and TemplateBased to generate the global context
 
- Since:
 - 11.1
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default List<TemplateInput>deserializeXML(String content)Convenient method to deserialize XML content using the 'xml'TemplateSerializer..TemplateSerializergetSerializer(String id)Returns theTemplateSerializerwith the givenid.default StringserializeXML(List<TemplateInput> params)Convenient method to serializeparamsto XML using the 'xml'TemplateSerializer. 
 - 
 
- 
- 
Method Detail
- 
getSerializer
TemplateSerializer getSerializer(String id)
Returns theTemplateSerializerwith the givenid.If no
TemplateSerializeris found, return the 'default' one.- Throws:
 NuxeoException- if noidor 'default'TemplateSerializerfound
 
- 
serializeXML
default String serializeXML(List<TemplateInput> params)
Convenient method to serializeparamsto XML using the 'xml'TemplateSerializer. 
- 
deserializeXML
default List<TemplateInput> deserializeXML(String content)
Convenient method to deserialize XML content using the 'xml'TemplateSerializer.. 
 - 
 
 -