1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.syncope.core.logic.api;
20
21 import java.util.List;
22 import org.apache.syncope.common.lib.request.AnyCR;
23 import org.apache.syncope.common.lib.request.AnyUR;
24 import org.apache.syncope.common.lib.to.AnyTO;
25 import org.apache.syncope.common.lib.to.PropagationStatus;
26
27
28
29
30 public interface LogicActions {
31
32 default <C extends AnyCR> C beforeCreate(C input) {
33 return input;
34 }
35
36 default <A extends AnyTO> A afterCreate(A input, List<PropagationStatus> statuses) {
37 return input;
38 }
39
40 default <U extends AnyUR> U beforeUpdate(U input) {
41 return input;
42 }
43
44 default <A extends AnyTO> A afterUpdate(A input, List<PropagationStatus> statuses) {
45 return input;
46 }
47
48 default <A extends AnyTO> A beforeDelete(A input) {
49 return input;
50 }
51
52 default <A extends AnyTO> A afterDelete(A input, List<PropagationStatus> statuses) {
53 return input;
54 }
55 }