Interface TemplateSerializerService
- All Known Implementing Classes:
TemplateSerializerServiceImpl
public interface TemplateSerializerService
Service 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
Modifier and TypeMethodDescriptiondefault List<TemplateInput>deserializeXML(String content) Convenient method to deserialize XML content using the 'xml'TemplateSerializer..getSerializer(String id) Returns theTemplateSerializerwith the givenid.default StringserializeXML(List<TemplateInput> params) Convenient method to serializeparamsto XML using the 'xml'TemplateSerializer.
-
Method Details
-
getSerializer
Returns theTemplateSerializerwith the givenid.If no
TemplateSerializeris found, return the 'default' one.- Throws:
NuxeoException- if noidor 'default'TemplateSerializerfound
-
serializeXML
Convenient method to serializeparamsto XML using the 'xml'TemplateSerializer. -
deserializeXML
Convenient method to deserialize XML content using the 'xml'TemplateSerializer..
-