Class TenantSpecificSearchParameterCache
- java.lang.Object
-
- com.ibm.fhir.core.TenantSpecificFileBasedCache<Map<String,ParametersMap>>
-
- com.ibm.fhir.search.parameters.cache.TenantSpecificSearchParameterCache
-
public class TenantSpecificSearchParameterCache extends TenantSpecificFileBasedCache<Map<String,ParametersMap>>
This class implements a cache of SearchParameters organized by tenantId. Each object stored in the cache will be a two-level map of SearchParameters organized first by resource type, then by search parameter code. Note: While we support json format only, to enable XML, it's best to create a new cache specific to XML. This change should change one line in this class, and be instantiated in the SearchUtil, and embedded in the call to Parameters. Alternatively, one could, upon not finding the JSON file, load the XML file.
-
-
Constructor Summary
Constructors Constructor Description TenantSpecificSearchParameterCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,ParametersMap>
createCachedObject(File f)
String
getCacheEntryFilename(String tenantId)
-
Methods inherited from class com.ibm.fhir.core.TenantSpecificFileBasedCache
clearCache, getCachedObjectForTenant
-
-
-
-
Method Detail
-
getCacheEntryFilename
public String getCacheEntryFilename(String tenantId)
- Specified by:
getCacheEntryFilename
in classTenantSpecificFileBasedCache<Map<String,ParametersMap>>
-
createCachedObject
public Map<String,ParametersMap> createCachedObject(File f) throws Exception
- Specified by:
createCachedObject
in classTenantSpecificFileBasedCache<Map<String,ParametersMap>>
- Throws:
Exception
-
-