1
0
mirror of https://github.com/pcvolkmer/etl-processor.git synced 2025-04-19 17:26:51 +00:00

Modified config property to select pseudonym generator

This commit is contained in:
Paul-Christian Volkmer 2023-08-01 16:06:40 +02:00
parent ccf6908223
commit 857bd157a0

View File

@ -20,13 +20,11 @@
package dev.dnpm.etl.processor.config package dev.dnpm.etl.processor.config
import org.springframework.boot.context.properties.ConfigurationProperties import org.springframework.boot.context.properties.ConfigurationProperties
import java.net.URI
import java.net.URL
@ConfigurationProperties(AppConfigProperties.NAME) @ConfigurationProperties(AppConfigProperties.NAME)
data class AppConfigProperties( data class AppConfigProperties(
var bwhc_uri: String?, var bwhc_uri: String?,
var pseudonymizer: Pseudonymizer = Pseudonymizer.BUILDIN var generator: PseudonymGenerator = PseudonymGenerator.BUILDIN
) { ) {
companion object { companion object {
const val NAME = "app" const val NAME = "app"
@ -75,7 +73,7 @@ data class KafkaTargetProperties(
} }
} }
enum class Pseudonymizer { enum class PseudonymGenerator {
BUILDIN, BUILDIN,
GPAS GPAS
} }