Class ResourcesConfigAdapter


  • public class ResourcesConfigAdapter
    extends java.lang.Object
    An abstraction for the ibm-fhir-server fhirServer/resources property group
    • Field Detail

      • log

        public static final java.util.logging.Logger log
    • Constructor Detail

      • ResourcesConfigAdapter

        public ResourcesConfigAdapter​(PropertyGroup resourcesConfig,
                                      FHIRVersionParam fhirVersion)
        Public constructor
        Parameters:
        resourcesConfig - a PropertyGroup instance for the fhirServer/resources property group
        fhirVersion - 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()