Package com.ibm.fhir.audit.configuration
Class ConfigurationTranslator
- java.lang.Object
-
- com.ibm.fhir.audit.configuration.ConfigurationTranslator
-
public class ConfigurationTranslator extends Object
Handles 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(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(Properties props, PropertyGroup auditLogProperties)loads the details from the environmental values.MapperTypegetMapperType(PropertyGroup auditLogProperties)get the mapper from the auditLogPropertiesStringgetTopic(PropertyGroup auditLogProperties)gets the topic used in the logging of the audit messages.Stringremap(String inputName)Propertiestranslate(PropertyGroup auditLogProperties)decides to load the Properties from the environment or the configuration.
-
-
-
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
-
config
public void config(Properties props, PropertyGroup auditLogProperties) throws Exception
loads the details from the config values.- Parameters:
props-auditLogProperties-- 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
-
-