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:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user