blob: c05ad6be76be9285b360dfc6d936354ea58dcf63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
package 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;
}
}
|