Package org.ehrbase.service
Class TemplateFileStorageService
- java.lang.Object
-
- org.ehrbase.service.TemplateFileStorageService
-
- All Implemented Interfaces:
TemplateStorage
public class TemplateFileStorageService extends Object implements TemplateStorage
-
-
Constructor Summary
Constructors Constructor Description TemplateFileStorageService()TemplateFileStorageService(String optPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetOptPath()voidinit()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
-
-
-
Constructor Detail
-
TemplateFileStorageService
@Autowired public TemplateFileStorageService()
-
TemplateFileStorageService
public TemplateFileStorageService(String optPath)
-
-
Method Detail
-
init
@PostConstruct public void init()
-
getOptPath
public String getOptPath()
-
listAllOperationalTemplates
public List<TemplateMetaData> listAllOperationalTemplates()
Description copied from interface:TemplateStorageList all Templates in the store;- Specified by:
listAllOperationalTemplatesin interfaceTemplateStorage- Returns:
-
storeTemplate
public void storeTemplate(OPERATIONALTEMPLATE template)
Description copied from interface:TemplateStorageSave a template in the store- Specified by:
storeTemplatein interfaceTemplateStorage
-
readOperationaltemplate
public Optional<OPERATIONALTEMPLATE> readOperationaltemplate(String templateId)
Description copied from interface:TemplateStorageFind and return a saved Template by templateId- Specified by:
readOperationaltemplatein interfaceTemplateStorage- Returns:
- the template @see
OPERATIONALTEMPLATEorOptional.empty()if not found.
-
-