diff options
| author | Paul-Christian Volkmer | 2023-07-24 18:50:12 +0200 |
|---|---|---|
| committer | Paul-Christian Volkmer | 2023-07-24 18:50:12 +0200 |
| commit | 05149bac0b60423cda3865e3119ce87b9e8cba62 (patch) | |
| tree | a22b03839cfaead830ece25ab02e525499bf99ff /src/main/java/dev/dnpm/etl | |
Initial commit
Diffstat (limited to 'src/main/java/dev/dnpm/etl')
| -rw-r--r-- | src/main/java/dev/dnpm/etl/processor/pseudonym/Generator.java | 26 | ||||
| -rw-r--r-- | src/main/java/dev/dnpm/etl/processor/pseudonym/GpasPseudonymGenerator.java | 41 |
2 files changed, 67 insertions, 0 deletions
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 <https://www.gnu.org/licenses/>. + */ + +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 <https://www.gnu.org/licenses/>. + */ + +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 "?"; + } + +} |
