Package org.ehrbase.ehr.knowledge
Interface I_KnowledgeCache
-
- All Known Implementing Classes:
KnowledgeCacheService
public interface I_KnowledgeCache
-
-
Field Summary
Fields Modifier and Type Field Description static StringTEMPLATE_ID
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringaddOperationalTemplate(byte[] content)Adds operational template to system and also in current cache.List<TemplateMetaData>listAllOperationalTemplates()Optional<OPERATIONALTEMPLATE>retrieveOperationalTemplate(String key)retrieve an operational template document instanceOptional<OPERATIONALTEMPLATE>retrieveOperationalTemplate(UUID uuid)retrieve a cached operational template document instance using its unique Id
-
-
-
Field Detail
-
TEMPLATE_ID
static final String TEMPLATE_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
addOperationalTemplate
String addOperationalTemplate(byte[] content)
Adds operational template to system and also in current cache.- Parameters:
content- operational template input- Returns:
- resulting template ID, when successful
- Throws:
InvalidApiParameterException- when input can't be pared to OPT instanceStateConflictException- when template with same template ID is already in the systemInternalServerException- when an unspecified problem occurs
-
listAllOperationalTemplates
List<TemplateMetaData> listAllOperationalTemplates() throws IOException
- Throws:
IOException
-
retrieveOperationalTemplate
Optional<OPERATIONALTEMPLATE> retrieveOperationalTemplate(String key)
retrieve an operational template document instance- Parameters:
key- the name of the operational template- Returns:
- an OPERATIONALTEMPLATE document instance or null
- See Also:
OPERATIONALTEMPLATE
-
retrieveOperationalTemplate
Optional<OPERATIONALTEMPLATE> retrieveOperationalTemplate(UUID uuid)
retrieve a cached operational template document instance using its unique Id- Parameters:
uuid- the name of the operational template- Returns:
- an OPERATIONALTEMPLATE document instance or null
- Throws:
Exception- See Also:
OPERATIONALTEMPLATE
-
-