Package com.ibm.fhir.config
Class ResourcesConfigAdapter
- java.lang.Object
-
- com.ibm.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.Set<java.lang.String>
ALL_CONCRETE_TYPES
static java.util.logging.Logger
log
-
Constructor Summary
Constructors Constructor Description ResourcesConfigAdapter(PropertyGroup resourcesConfig)
-
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)
-
-
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 concrete supported resource types
- 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
-
isWholeSystemSearchSupported
public boolean isWholeSystemSearchSupported()
-
isWholeSystemHistorySupported
public boolean isWholeSystemHistorySupported()
-
-