Class DefaultRestTemplateEndpoint
- java.lang.Object
-
- org.ehrbase.client.openehrclient.defaultrestclient.DefaultRestTemplateEndpoint
-
- All Implemented Interfaces:
TemplateEndpoint
public class DefaultRestTemplateEndpoint extends Object implements TemplateEndpoint
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFINITION_TEMPLATE_ADL_1_4_PATH
-
Constructor Summary
Constructors Constructor Description DefaultRestTemplateEndpoint(DefaultRestClient defaultRestClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidensureExistence(String templateId)Ensure that the Template withtemplateIdexists in the remote system.TemplatesResponseDatafindAllTemplates()Retrieves a list of templatesOptional<OPERATIONALTEMPLATE>findTemplate(String templateId)Find a template by templateId
-
-
-
Field Detail
-
DEFINITION_TEMPLATE_ADL_1_4_PATH
public static final String DEFINITION_TEMPLATE_ADL_1_4_PATH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DefaultRestTemplateEndpoint
public DefaultRestTemplateEndpoint(DefaultRestClient defaultRestClient)
-
-
Method Detail
-
findTemplate
public Optional<OPERATIONALTEMPLATE> findTemplate(String templateId)
Description copied from interface:TemplateEndpointFind a template by templateId- Specified by:
findTemplatein interfaceTemplateEndpoint- Returns:
OPERATIONALTEMPLATE
-
findAllTemplates
public TemplatesResponseData findAllTemplates()
Description copied from interface:TemplateEndpointRetrieves a list of templates- Specified by:
findAllTemplatesin interfaceTemplateEndpoint- Returns:
-
ensureExistence
public void ensureExistence(String templateId)
Description copied from interface:TemplateEndpointEnsure that the Template withtemplateIdexists in the remote system.- Specified by:
ensureExistencein interfaceTemplateEndpoint- Parameters:
templateId- Id of the template to check
-
-