Class ConfigurationTranslator
- java.lang.Object
 - 
- org.linuxforhealth.fhir.audit.configuration.ConfigurationTranslator
 
 
- 
public class ConfigurationTranslator extends java.lang.ObjectHandles translation of configurations to useful configurations. 
- 
- 
Constructor Summary
Constructors Constructor Description ConfigurationTranslator() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfig(java.util.Properties props, PropertyGroup auditLogProperties)loads the details from the config values.ConfigurationTypedetermineConfigurationType(PropertyGroup auditLogProperties)gets the location to load the properties from: Environment Bindings with EventStreams Credentials format - "environment" fhir-server-config.json - "config"voidenvironment(java.util.Properties props, PropertyGroup auditLogProperties)loads the details from the environmental values.MapperTypegetMapperType(PropertyGroup auditLogProperties)get the mapper from the auditLogPropertiesjava.lang.StringgetTopic(PropertyGroup auditLogProperties)gets the topic used in the logging of the audit messages.java.lang.Stringremap(java.lang.String inputName)java.util.Propertiestranslate(PropertyGroup auditLogProperties)decides to load the Properties from the environment or the configuration. 
 - 
 
- 
- 
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.Exceptionloads 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.Exceptionloads 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
 
 - 
 
 -