Skip to content

Commit b321a11

Browse files
committed
remove constraints from transfer scope again
1 parent 3387dd6 commit b321a11

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

policy-extension/src/main/java/org/eclipse/edc/extension/possiblepolicy/PossiblePolicyExtension.java

-10
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import org.eclipse.edc.spi.system.ServiceExtension;
2626
import org.eclipse.edc.spi.system.ServiceExtensionContext;
2727

28-
import static org.eclipse.edc.connector.contract.spi.validation.ContractValidationService.TRANSFER_SCOPE;
2928
import static org.eclipse.edc.policy.model.OdrlNamespace.ODRL_SCHEMA;
3029

3130
import java.util.Map;
@@ -62,9 +61,6 @@ public void initialize(ServiceExtensionContext context) {
6261
ruleBindingRegistry.bind("use", NEGOTIATION_SCOPE);
6362
ruleBindingRegistry.bind("USE", NEGOTIATION_SCOPE);
6463
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);
6864

6965
// iterate over claim constraint key map and register functions for negotiation and transfer scope
7066
for (Map.Entry<String, String> entry : CONSTRAINT_KEY_MAP.entrySet()) {
@@ -73,12 +69,6 @@ public void initialize(ServiceExtensionContext context) {
7369
new ClientClaimConstraintFunction<>(monitor, entry.getValue(), VERBOSE));
7470
policyEngine.registerFunction(NEGOTIATION_SCOPE, Prohibition.class, entry.getKey(),
7571
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));
8272
}
8373

8474
// also register reimplementation of standard edc contract expiry check function for negotiation scope

0 commit comments

Comments
 (0)