Package org.linuxforhealth.fhir.config
Class ResourcesConfigAdapter
- java.lang.Object
-
- org.linuxforhealth.fhir.config.ResourcesConfigAdapter
-
public class ResourcesConfigAdapter extends java.lang.Object
An abstraction for the ibm-fhir-server fhirServer/resources property group
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.logging.Logger
log
-
Constructor Summary
Constructors Constructor Description ResourcesConfigAdapter(PropertyGroup resourcesConfig, FHIRVersionParam fhirVersion)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>
getSupportedResourceTypes()
java.util.Set<java.lang.String>
getSupportedResourceTypes(Interaction interaction)
boolean
isHistoryRestricted()
boolean
isSearchRestricted()
boolean
isWholeSystemHistorySupported()
boolean
isWholeSystemSearchSupported()
-
-
-
Constructor Detail
-
ResourcesConfigAdapter
public ResourcesConfigAdapter(PropertyGroup resourcesConfig, FHIRVersionParam fhirVersion)
Public constructor- Parameters:
resourcesConfig
- a PropertyGroup instance for the fhirServer/resources property groupfhirVersion
- a FHIRVersionParam with the fhirVersion to use for computing the applicable resource types- Throws:
java.lang.Exception
-
-
Method Detail
-
isSearchRestricted
public boolean isSearchRestricted()
- Returns:
- whether the server is configured to prevent searches for one or more resource types
-
isHistoryRestricted
public boolean isHistoryRestricted()
- Returns:
- whether the server is configured to prevent history interactions for one or more resource types
-
getSupportedResourceTypes
public java.util.Set<java.lang.String> getSupportedResourceTypes()
- Returns:
- an immutable, non-null set of supported resource types for the given fhirVersion
- Throws:
java.lang.Exception
-
getSupportedResourceTypes
public java.util.Set<java.lang.String> getSupportedResourceTypes(Interaction interaction)
- Returns:
- an immutable, non-null set of concrete resource types that are configured for the given interaction and fhirVersion
-
isWholeSystemSearchSupported
public boolean isWholeSystemSearchSupported()
-
isWholeSystemHistorySupported
public boolean isWholeSystemHistorySupported()
-
-