summaryrefslogtreecommitdiff
path: root/src/main/java/DNPM/services/consent/ConsentManagerServiceFactory.java
diff options
context:
space:
mode:
authorPaul-Christian Volkmer2024-09-21 22:10:24 +0200
committerPaul-Christian Volkmer2024-09-21 22:10:24 +0200
commitcc27edc544cec1b892e7c224aec9e6e42342aa39 (patch)
tree3036b92f84a707d769782d63c2b018166623abf5 /src/main/java/DNPM/services/consent/ConsentManagerServiceFactory.java
parent93215825f5c8aec0912d562b544f370cffe9cda7 (diff)
refactor: use package name following Java guidelines
Diffstat (limited to 'src/main/java/DNPM/services/consent/ConsentManagerServiceFactory.java')
-rw-r--r--src/main/java/DNPM/services/consent/ConsentManagerServiceFactory.java28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/main/java/DNPM/services/consent/ConsentManagerServiceFactory.java b/src/main/java/DNPM/services/consent/ConsentManagerServiceFactory.java
deleted file mode 100644
index 0ec7a15..0000000
--- a/src/main/java/DNPM/services/consent/ConsentManagerServiceFactory.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package DNPM.services.consent;
-
-import de.itc.onkostar.api.IOnkostarApi;
-
-public class ConsentManagerServiceFactory {
-
- private final IOnkostarApi onkostarApi;
-
- public ConsentManagerServiceFactory(
- final IOnkostarApi onkostarApi
- ) {
- this.onkostarApi = onkostarApi;
- }
-
- public ConsentManagerService currentUsableInstance() {
- var consentFormName = onkostarApi.getGlobalSetting("consentform");
-
- switch (consentFormName) {
- case "Excel-Formular":
- return new UkwConsentManagerService(this.onkostarApi);
- case "MR.Consent":
- return new MrConsentManagerService(this.onkostarApi);
- default:
- return procedure -> {};
- }
- }
-
-}