1
0
mirror of https://github.com/pcvolkmer/onkostar-plugin-dnpm.git synced 2025-07-03 01:32:55 +00:00

Issue #20: Detailimplementierungen für Consent Management

This commit is contained in:
2023-04-03 14:34:32 +02:00
parent d548c5e5a3
commit a97d76e5bb
10 changed files with 313 additions and 117 deletions

View File

@ -0,0 +1,25 @@
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 "MR.Consent":
default:
return new MrConsentManagerService(this.onkostarApi);
}
}
}