-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/182-consume-offering' of github.com:sovity/edc-ext…
…ensions into feat/182-consume-offering feat: merge latest upstream changes
- Loading branch information
Showing
7 changed files
with
170 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 28 additions & 8 deletions
36
...rapper/src/main/java/de/sovity/edc/ext/wrapper/api/usecase/model/ConsumptionInputDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,41 @@ | ||
package de.sovity.edc.ext.wrapper.api.usecase.model; | ||
|
||
import de.sovity.edc.ext.wrapper.api.common.model.PolicyDto; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import org.eclipse.edc.policy.model.Policy; | ||
import org.eclipse.edc.spi.types.domain.DataAddress; | ||
|
||
import java.util.Map; | ||
|
||
/** | ||
* Input for a consumption process. | ||
* | ||
* @author Ronja Quensel | ||
*/ | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Builder(toBuilder = true) | ||
@Getter | ||
public class ConsumptionInputDto { | ||
String connectorId; | ||
String connectorAddress; | ||
String offerId; | ||
String assetId; | ||
Policy policy; //TODO is still using EDC model: policy as input for negotiation requires target attribute (= asset id) | ||
DataAddress dataDestination; | ||
/** ID of the provider. */ | ||
private String connectorId; | ||
|
||
/** Address of the provider. */ | ||
private String connectorAddress; | ||
|
||
/** ID of the offer which is the basis for the consumption request. */ | ||
private String offerId; | ||
|
||
/** ID of the asset that is requested. */ | ||
private String assetId; | ||
|
||
/** Policy used as the basis for the contract negotiation. */ | ||
private PolicyDto policy; | ||
|
||
/** | ||
* Destination where the data should be transferred. For reference, see | ||
* {@link org.eclipse.edc.spi.types.domain.DataAddress} | ||
*/ | ||
private Map<String, String> dataDestination; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.