Class TenantSpecificSearchParameterCache
- java.lang.Object
-
- org.linuxforhealth.fhir.core.TenantSpecificFileBasedCache<java.util.List<SearchParameter>>
-
- org.linuxforhealth.fhir.search.parameters.cache.TenantSpecificSearchParameterCache
-
public class TenantSpecificSearchParameterCache extends TenantSpecificFileBasedCache<java.util.List<SearchParameter>>
This class implements a cache of SearchParameters organized by tenantId. Each object stored in the cache will be a list of SearchParameters. 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 java.util.List<SearchParameter>
createCachedObject(java.io.File f)
java.lang.String
getCacheEntryFilename(java.lang.String tenantId)
-
Methods inherited from class org.linuxforhealth.fhir.core.TenantSpecificFileBasedCache
clearCache, getCachedObjectForTenant
-
-
-
-
Method Detail
-
getCacheEntryFilename
public java.lang.String getCacheEntryFilename(java.lang.String tenantId)
- Specified by:
getCacheEntryFilename
in classTenantSpecificFileBasedCache<java.util.List<SearchParameter>>
-
createCachedObject
public java.util.List<SearchParameter> createCachedObject(java.io.File f) throws java.lang.Exception
- Specified by:
createCachedObject
in classTenantSpecificFileBasedCache<java.util.List<SearchParameter>>
- Throws:
java.lang.Exception
-
-