Class ConfigurationTranslator


  • public class ConfigurationTranslator
    extends Object
    Handles translation of configurations to useful configurations.
    • Constructor Detail

      • ConfigurationTranslator

        public ConfigurationTranslator()
    • Method Detail

      • translate

        public Properties translate​(PropertyGroup auditLogProperties)
                             throws Exception
        decides to load the Properties from the environment or the configuration.
        Parameters:
        auditLogProperties -
        Returns:
        Throws:
        Exception
      • environment

        public void environment​(Properties props,
                                PropertyGroup auditLogProperties)
                         throws Exception
        loads the details from the environmental values.
        Parameters:
        props -
        auditLogProperties -
        Throws:
        Exception
      • determineConfigurationType

        public ConfigurationType determineConfigurationType​(PropertyGroup auditLogProperties)
        gets the location to load the properties from:
        • Environment Bindings with EventStreams Credentials format - "environment"
        • fhir-server-config.json - "config"
        Parameters:
        auditLogProperties -
        Returns:
      • getTopic

        public String getTopic​(PropertyGroup auditLogProperties)
        gets the topic used in the logging of the audit messages.
        Parameters:
        auditLogProperties -
        Returns:
      • getMapperType

        public MapperType getMapperType​(PropertyGroup auditLogProperties)
                                 throws Exception
        get the mapper from the auditLogProperties
        Parameters:
        auditLogProperties -
        Returns:
        Throws:
        Exception