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 theTemplateSerializer
with the givenid
.default String
serializeXML
(List<TemplateInput> params) Convenient method to serializeparams
to XML using the 'xml'TemplateSerializer
.
-
Method Details
-
getSerializer
Returns theTemplateSerializer
with the givenid
.If no
TemplateSerializer
is found, return the 'default' one.- Throws:
NuxeoException
- if noid
or 'default'TemplateSerializer
found
-
serializeXML
Convenient method to serializeparams
to XML using the 'xml'TemplateSerializer
. -
deserializeXML
Convenient method to deserialize XML content using the 'xml'TemplateSerializer
..
-