4.2.1.3. Template Endpoint¶
The DefaultRestClient
includes a DefaultRestTemplateEndpoint
with the following functionalities.
Warning
WIP
4.2.1.3.1. Ensure existence of a template¶
Uploading necessary operational templates is vital for many other client functions.
The ensureExistence(String templateId)
method combines a check
and the upload, if the template is not already available on the server.
The following example utilizes a TemplateProvider
(see Client reference)
to go through all templates of the client’s scope and ensure their existence:
templateProvider.listTemplateIds().forEach(
t -> client.templateEndpoint().ensureExistence(t)
);