Skip to content

Commit 8b9b379

Browse files
authored
refactor: cleanup deprecated DSP versions (#5452)
1 parent f646d5e commit 8b9b379

211 files changed

Lines changed: 758 additions & 8237 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

core/common/lib/json-ld-lib/src/main/java/org/eclipse/edc/jsonld/CachedDocumentRegistry.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public class CachedDocumentRegistry {
4242
public static Stream<Result<JsonLdContext>> getDocuments() {
4343
return Map.of(
4444
"odrl.jsonld", "http://www.w3.org/ns/odrl.jsonld",
45-
"dspace.jsonld", "https://w3id.org/dspace/2024/1/context.json",
4645
"management-context-v1.jsonld", EDC_CONNECTOR_MANAGEMENT_CONTEXT,
4746
"management-context-v2.jsonld", EDC_CONNECTOR_MANAGEMENT_CONTEXT_V2,
4847
"dspace-edc-context-v1.jsonld", EDC_DSPACE_CONTEXT,

core/common/lib/json-ld-lib/src/main/resources/document/dspace.jsonld

Lines changed: 0 additions & 62 deletions
This file was deleted.

core/common/lib/token-lib/src/main/java/org/eclipse/edc/token/JwtGenerationService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public JwtGenerationService(JwsSignerProvider jwsSignerProvider) {
4545
}
4646

4747
@Override
48-
@Deprecated
48+
@Deprecated(since = "0.15.0")
4949
public Result<TokenRepresentation> generate(String privateKeyId, @NotNull TokenDecorator... decorators) {
5050

5151
var tokenSignerResult = jwsGeneratorFunction.createJwsSigner(privateKeyId);

core/common/lib/transform-lib/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ dependencies {
2626
testImplementation(project(":tests:junit-base"));
2727
testImplementation(project(":core:common:lib:json-lib"))
2828
testImplementation(project(":core:common:lib:json-ld-lib"))
29+
testImplementation(project(":data-protocols:dsp:dsp-2025:dsp-spi-2025"))
2930
}

core/common/lib/transform-lib/src/main/java/org/eclipse/edc/transform/transformer/dspace/DataAddressDspaceSerialization.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,16 @@
1414

1515
package org.eclipse.edc.transform.transformer.dspace;
1616

17-
import static org.eclipse.edc.jsonld.spi.Namespaces.DSPACE_SCHEMA;
18-
1917
/**
2018
* Contains constants specifically intended for serializing a {@link org.eclipse.edc.spi.types.domain.DataAddress}
2119
* to JSON-LD using the `dspace:` prefix format.
2220
*/
2321
public interface DataAddressDspaceSerialization {
2422
String DSPACE_DATAADDRESS_TYPE_TERM = "DataAddress";
25-
String DSPACE_DATAADDRESS_TYPE_IRI = DSPACE_SCHEMA + DSPACE_DATAADDRESS_TYPE_TERM;
2623
String ENDPOINT_TYPE_PROPERTY_TERM = "endpointType";
27-
String ENDPOINT_TYPE_PROPERTY_IRI = DSPACE_SCHEMA + ENDPOINT_TYPE_PROPERTY_TERM;
2824
String ENDPOINT_PROPERTY_TERM = "endpoint";
29-
String ENDPOINT_PROPERTY_IRI = DSPACE_SCHEMA + ENDPOINT_PROPERTY_TERM;
3025
String ENDPOINT_PROPERTIES_PROPERTY_TERM = "endpointProperties";
31-
String ENDPOINT_PROPERTIES_PROPERTY_IRI = DSPACE_SCHEMA + ENDPOINT_PROPERTIES_PROPERTY_TERM;
3226
String ENDPOINT_PROPERTY_PROPERTY_TYPE_TERM = "EndpointProperty";
33-
String ENDPOINT_PROPERTY_PROPERTY_TYPE_IRI = DSPACE_SCHEMA + ENDPOINT_PROPERTY_PROPERTY_TYPE_TERM;
3427
String ENDPOINT_PROPERTY_NAME_PROPERTY_TERM = "name";
35-
String ENDPOINT_PROPERTY_NAME_PROPERTY_IRI = DSPACE_SCHEMA + ENDPOINT_PROPERTY_NAME_PROPERTY_TERM;
3628
String ENDPOINT_PROPERTY_VALUE_PROPERTY_TERM = "value";
37-
String ENDPOINT_PROPERTY_VALUE_PROPERTY_IRI = DSPACE_SCHEMA + ENDPOINT_PROPERTY_VALUE_PROPERTY_TERM;
3829
}

core/common/lib/transform-lib/src/main/java/org/eclipse/edc/transform/transformer/dspace/from/JsonObjectFromDataAddressDspaceTransformer.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2024 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
2+
* Copyright (c) 2026 Think-it GmbH
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Apache License, Version 2.0 which is available at
@@ -8,7 +8,7 @@
88
* SPDX-License-Identifier: Apache-2.0
99
*
1010
* Contributors:
11-
* Bayerische Motoren Werke Aktiengesellschaft (BMW AG) - initial API and implementation
11+
* Think-it GmbH - initial API and implementation
1212
*
1313
*/
1414

@@ -28,7 +28,6 @@
2828
import java.util.Set;
2929

3030
import static org.eclipse.edc.jsonld.spi.JsonLdKeywords.TYPE;
31-
import static org.eclipse.edc.jsonld.spi.Namespaces.DSPACE_SCHEMA;
3231
import static org.eclipse.edc.spi.types.domain.DataAddress.EDC_DATA_ADDRESS_TYPE_PROPERTY;
3332
import static org.eclipse.edc.transform.transformer.dspace.DataAddressDspaceSerialization.DSPACE_DATAADDRESS_TYPE_TERM;
3433
import static org.eclipse.edc.transform.transformer.dspace.DataAddressDspaceSerialization.ENDPOINT_PROPERTIES_PROPERTY_TERM;
@@ -44,10 +43,6 @@ public class JsonObjectFromDataAddressDspaceTransformer extends AbstractNamespac
4443
private final TypeManager typeManager;
4544
private final String typeContext;
4645

47-
public JsonObjectFromDataAddressDspaceTransformer(JsonBuilderFactory jsonFactory, TypeManager typeManager, String typeContext) {
48-
this(jsonFactory, typeManager, typeContext, new JsonLdNamespace(DSPACE_SCHEMA));
49-
}
50-
5146
public JsonObjectFromDataAddressDspaceTransformer(JsonBuilderFactory jsonFactory, TypeManager typeManager, String typeContext, JsonLdNamespace namespace) {
5247
super(DataAddress.class, JsonObject.class, namespace);
5348
this.jsonFactory = jsonFactory;
@@ -64,7 +59,7 @@ public JsonObjectFromDataAddressDspaceTransformer(JsonBuilderFactory jsonFactory
6459

6560
return jsonFactory.createObjectBuilder()
6661
.add(TYPE, forNamespace(DSPACE_DATAADDRESS_TYPE_TERM))
67-
.add(forNamespace(ENDPOINT_TYPE_PROPERTY_TERM), dataAddress.getType())
62+
.add(forNamespace(ENDPOINT_TYPE_PROPERTY_TERM), createId(jsonFactory, dataAddress.getType()))
6863
.add(forNamespace(ENDPOINT_PROPERTIES_PROPERTY_TERM), endpointProperties)
6964
.build();
7065
}

core/common/lib/transform-lib/src/main/java/org/eclipse/edc/transform/transformer/dspace/to/JsonObjectToDataAddressDspaceTransformer.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import java.util.function.Consumer;
2828
import java.util.function.Function;
2929

30-
import static org.eclipse.edc.jsonld.spi.Namespaces.DSPACE_SCHEMA;
3130
import static org.eclipse.edc.spi.types.domain.DataAddress.EDC_DATA_ADDRESS_RESPONSE_CHANNEL;
3231
import static org.eclipse.edc.transform.transformer.dspace.DataAddressDspaceSerialization.ENDPOINT_PROPERTIES_PROPERTY_TERM;
3332
import static org.eclipse.edc.transform.transformer.dspace.DataAddressDspaceSerialization.ENDPOINT_PROPERTY_NAME_PROPERTY_TERM;
@@ -39,10 +38,6 @@
3938
*/
4039
public class JsonObjectToDataAddressDspaceTransformer extends AbstractNamespaceAwareJsonLdTransformer<JsonObject, DataAddress> {
4140

42-
public JsonObjectToDataAddressDspaceTransformer() {
43-
this(new JsonLdNamespace(DSPACE_SCHEMA));
44-
}
45-
4641
public JsonObjectToDataAddressDspaceTransformer(JsonLdNamespace namespace) {
4742
super(JsonObject.class, DataAddress.class, namespace);
4843
}

core/common/lib/transform-lib/src/main/java/org/eclipse/edc/transform/transformer/dspace/v2024/from/JsonObjectFromDataAddressDspace2024Transformer.java

Lines changed: 0 additions & 80 deletions
This file was deleted.

0 commit comments

Comments
 (0)