Package org.ehrbase.service
Interface TemplateStorage
-
- All Known Implementing Classes:
TemplateDBStorageService,TemplateFileStorageService
public interface TemplateStorage
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<TemplateMetaData>listAllOperationalTemplates()List all Templates in the store;Optional<OPERATIONALTEMPLATE>readOperationaltemplate(String templateId)Find and return a saved Template by templateIdvoidstoreTemplate(OPERATIONALTEMPLATE template)Save a template in the store
-
-
-
Method Detail
-
listAllOperationalTemplates
List<TemplateMetaData> listAllOperationalTemplates()
List all Templates in the store;- Returns:
-
storeTemplate
void storeTemplate(OPERATIONALTEMPLATE template)
Save a template in the store- Parameters:
template-- Throws:
RuntimeException- template Id or uuid are not unique
-
readOperationaltemplate
Optional<OPERATIONALTEMPLATE> readOperationaltemplate(String templateId)
Find and return a saved Template by templateId- Parameters:
templateId-- Returns:
- the template @see
OPERATIONALTEMPLATEorOptional.empty()if not found.
-
-