From 05149bac0b60423cda3865e3119ce87b9e8cba62 Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Mon, 24 Jul 2023 18:50:12 +0200 Subject: Initial commit --- .../dnpm/etl/processor/pseudonym/Generator.java | 26 ++++++++++++++ .../pseudonym/GpasPseudonymGenerator.java | 41 ++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 src/main/java/dev/dnpm/etl/processor/pseudonym/Generator.java create mode 100644 src/main/java/dev/dnpm/etl/processor/pseudonym/GpasPseudonymGenerator.java (limited to 'src/main/java') diff --git a/src/main/java/dev/dnpm/etl/processor/pseudonym/Generator.java b/src/main/java/dev/dnpm/etl/processor/pseudonym/Generator.java new file mode 100644 index 0000000..e1938ba --- /dev/null +++ b/src/main/java/dev/dnpm/etl/processor/pseudonym/Generator.java @@ -0,0 +1,26 @@ +/* + * This file is part of ETL-Processor + * + * Copyright (c) 2023 Comprehensive Cancer Center Mainfranken, Datenintegrationszentrum Philipps-Universität Marburg and Contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +package dev.dnpm.etl.processor.pseudonym; + +public interface Generator { + + String generate(String id); + +} diff --git a/src/main/java/dev/dnpm/etl/processor/pseudonym/GpasPseudonymGenerator.java b/src/main/java/dev/dnpm/etl/processor/pseudonym/GpasPseudonymGenerator.java new file mode 100644 index 0000000..98f4ba6 --- /dev/null +++ b/src/main/java/dev/dnpm/etl/processor/pseudonym/GpasPseudonymGenerator.java @@ -0,0 +1,41 @@ +/* + * This file is part of ETL-Processor + * + * Copyright (c) 2023 Comprehensive Cancer Center Mainfranken, Datenintegrationszentrum Philipps-Universität Marburg and Contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +package dev.dnpm.etl.processor.pseudonym; + +import java.net.URI; + +public class GpasPseudonymGenerator implements Generator { + + private final URI uri; + + private final String target; + + public GpasPseudonymGenerator(URI uri, String target) { + this.uri = uri; + this.target = target; + } + + @Override + public String generate(String id) { + // TODO Implement this + return "?"; + } + +} -- cgit v1.2.3