Class ConfigurationTranslator


  • public class ConfigurationTranslator
    extends java.lang.Object
    Handles translation of configurations to useful configurations.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void config​(java.util.Properties props, PropertyGroup auditLogProperties)
      loads the details from the config values.
      ConfigurationType determineConfigurationType​(PropertyGroup auditLogProperties)
      gets the location to load the properties from: Environment Bindings with EventStreams Credentials format - "environment" fhir-server-config.json - "config"
      void environment​(java.util.Properties props, PropertyGroup auditLogProperties)
      loads the details from the environmental values.
      MapperType getMapperType​(PropertyGroup auditLogProperties)
      get the mapper from the auditLogProperties
      java.lang.String getTopic​(PropertyGroup auditLogProperties)
      gets the topic used in the logging of the audit messages.
      java.lang.String remap​(java.lang.String inputName)  
      java.util.Properties translate​(PropertyGroup auditLogProperties)
      decides to load the Properties from the environment or the configuration.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConfigurationTranslator

        public ConfigurationTranslator()
    • Method Detail

      • remap

        public java.lang.String remap​(java.lang.String inputName)
      • translate

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

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

        public void environment​(java.util.Properties props,
                                PropertyGroup auditLogProperties)
                         throws java.lang.Exception
        loads the details from the environmental values.
        Parameters:
        props -
        auditLogProperties -
        Throws:
        java.lang.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 java.lang.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 java.lang.Exception
        get the mapper from the auditLogProperties
        Parameters:
        auditLogProperties -
        Returns:
        Throws:
        java.lang.Exception