25
25
import org .eclipse .edc .spi .system .ServiceExtension ;
26
26
import org .eclipse .edc .spi .system .ServiceExtensionContext ;
27
27
28
- import static org .eclipse .edc .connector .contract .spi .validation .ContractValidationService .TRANSFER_SCOPE ;
29
28
import static org .eclipse .edc .policy .model .OdrlNamespace .ODRL_SCHEMA ;
30
29
31
30
import java .util .Map ;
@@ -62,9 +61,6 @@ public void initialize(ServiceExtensionContext context) {
62
61
ruleBindingRegistry .bind ("use" , NEGOTIATION_SCOPE );
63
62
ruleBindingRegistry .bind ("USE" , NEGOTIATION_SCOPE );
64
63
ruleBindingRegistry .bind (ODRL_SCHEMA + "use" , NEGOTIATION_SCOPE );
65
- ruleBindingRegistry .bind ("use" , TRANSFER_SCOPE );
66
- ruleBindingRegistry .bind ("USE" , TRANSFER_SCOPE );
67
- ruleBindingRegistry .bind (ODRL_SCHEMA + "use" , TRANSFER_SCOPE );
68
64
69
65
// iterate over claim constraint key map and register functions for negotiation and transfer scope
70
66
for (Map .Entry <String , String > entry : CONSTRAINT_KEY_MAP .entrySet ()) {
@@ -73,12 +69,6 @@ public void initialize(ServiceExtensionContext context) {
73
69
new ClientClaimConstraintFunction <>(monitor , entry .getValue (), VERBOSE ));
74
70
policyEngine .registerFunction (NEGOTIATION_SCOPE , Prohibition .class , entry .getKey (),
75
71
new ClientClaimConstraintFunction <>(monitor , entry .getValue (), VERBOSE ));
76
-
77
- ruleBindingRegistry .bind (entry .getKey (), TRANSFER_SCOPE );
78
- policyEngine .registerFunction (TRANSFER_SCOPE , Permission .class , entry .getKey (),
79
- new ClientClaimConstraintFunction <>(monitor , entry .getValue (), VERBOSE ));
80
- policyEngine .registerFunction (TRANSFER_SCOPE , Prohibition .class , entry .getKey (),
81
- new ClientClaimConstraintFunction <>(monitor , entry .getValue (), VERBOSE ));
82
72
}
83
73
84
74
// also register reimplementation of standard edc contract expiry check function for negotiation scope
0 commit comments