1
0
mirror of https://github.com/pcvolkmer/onkostar-plugin-dnpm.git synced 2025-07-01 17:02:53 +00:00
Files
onkostar-plugin-dnpm/src/main/java/dev/dnpm/services/consent/ConsentManagerService.java

28 lines
715 B
Java

package dev.dnpm.services.consent;
import de.itc.onkostar.api.Procedure;
/**
* Schnittstelle für die Anwendung von Consent-Änderungen
*
* @since 0.2.0
*/
public interface ConsentManagerService {
/**
* Wende Consent an, wenn dieses Consent-Formular gespeichert wird
* @param procedure Prozedur des Consent-Formulars
*/
void applyConsent(Procedure procedure);
/**
* Optionale Prüfung, ob die angegebene Prozedur angewendet werden kann.
* @param procedure Anzuwendende Prozedur
* @return Gibt <code>true</code> zurück, wenn die Prozedur angewendet werden kann.
*/
default boolean canApply(Procedure procedure) {
return null != procedure;
}
}