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