-
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 'main' into 1373-gap-create-data-offer-endpoint
- Loading branch information
Showing
22 changed files
with
637 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Env variables for docker-compose.yaml | ||
EDC_IMAGE=ghcr.io/sovity/edc-dev:10.2.0 | ||
TEST_BACKEND_IMAGE=ghcr.io/sovity/test-backend:10.2.0 | ||
EDC_UI_IMAGE=ghcr.io/sovity/edc-ui:4.1.2 | ||
EDC_IMAGE=ghcr.io/sovity/edc-dev:10.3.0 | ||
TEST_BACKEND_IMAGE=ghcr.io/sovity/test-backend:10.3.0 | ||
EDC_UI_IMAGE=ghcr.io/sovity/edc-ui:4.1.3 | ||
EDC_UI_ACTIVE_PROFILE=sovity-open-source |
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
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
35 changes: 35 additions & 0 deletions
35
...on/src/main/java/de/sovity/edc/extension/contacttermination/ContractTerminationEvent.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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Copyright (c) 2024 sovity GmbH | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License, Version 2.0 which is available at | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Contributors: | ||
* sovity GmbH - initial API and implementation | ||
* | ||
*/ | ||
|
||
package de.sovity.edc.extension.contacttermination; | ||
|
||
import java.time.OffsetDateTime; | ||
|
||
public record ContractTerminationEvent( | ||
String contractAgreementId, | ||
String detail, | ||
String reason, | ||
OffsetDateTime timestamp, | ||
String origin | ||
) { | ||
public static ContractTerminationEvent from(ContractTerminationParam contractTerminationParam, OffsetDateTime dateTime, String origin) { | ||
return new ContractTerminationEvent( | ||
contractTerminationParam.contractAgreementId(), | ||
contractTerminationParam.detail(), | ||
contractTerminationParam.reason(), | ||
dateTime, | ||
origin | ||
); | ||
} | ||
} |
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
50 changes: 50 additions & 0 deletions
50
...src/main/java/de/sovity/edc/extension/contacttermination/ContractTerminationObserver.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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* Copyright (c) 2024 sovity GmbH | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License, Version 2.0 which is available at | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Contributors: | ||
* sovity GmbH - initial API and implementation | ||
* | ||
*/ | ||
|
||
package de.sovity.edc.extension.contacttermination; | ||
|
||
public interface ContractTerminationObserver { | ||
|
||
/** | ||
* Indicates that a contract termination was started by this EDC. | ||
*/ | ||
default void contractTerminationStartedFromThisInstance(ContractTerminationEvent contractTerminationEvent) { | ||
} | ||
|
||
/** | ||
* Indicates that the first step to terminate a contract, terminating a contract on this EDC instance itself, was successful. | ||
* The contract is now marked as terminated on this EDC's side. | ||
*/ | ||
default void contractTerminationCompletedOnThisInstance(ContractTerminationEvent contractTerminationEvent) { | ||
} | ||
|
||
/** | ||
* Indicates that a contract termination on the counterparty EDC was started. | ||
*/ | ||
default void contractTerminationOnCounterpartyStarted(ContractTerminationEvent contractTerminationEvent) { | ||
} | ||
|
||
/** | ||
* Indicates that a contract termination was started by a counterparty EDC terminated successfully | ||
*/ | ||
default void contractTerminatedByCounterpartyStarted(ContractTerminationEvent contractTerminationEvent) { | ||
} | ||
|
||
/** | ||
* Indicates that a contract termination initiated by a counterparty EDC terminated successfully | ||
* The contract is now marked as terminated on this EDC. | ||
*/ | ||
default void contractTerminatedByCounterparty(ContractTerminationEvent contractTerminationEvent) { | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!-- PROJECT LOGO --> | ||
<br /> | ||
<div align="center"> | ||
<a href="https://github.com/sovity/edc-ce"> | ||
<img src="https://raw.githubusercontent.com/sovity/edc-ui/main/src/assets/images/sovity_logo.svg" alt="Logo" width="300"> | ||
</a> | ||
|
||
<h3 align="center">EDC-Connector Extension:<br />MDS Contract Termination - LoggingHouse binder</h3> | ||
|
||
<p align="center"> | ||
<a href="https://github.com/sovity/edc-ce/issues/new?template=bug_report.md">Report Bug</a> | ||
· | ||
<a href="https://github.com/sovity/edc-ce/issues/new?template=feature_request.md">Request Feature</a> | ||
</p> | ||
</div> | ||
|
||
|
||
## About this Extension | ||
|
||
It links the Contract Termination events with the LoggingHouse. | ||
|
||
## Why does this extension exist? | ||
|
||
MDS needs to log the events generated when terminating a contract with their Logging House extension. | ||
The Logging House is an external dependency and the linkage must only happen for the MDS variant. | ||
|
||
This extension implements this specific task. | ||
|
||
## Architecture | ||
|
||
```mermaid | ||
flowchart TD | ||
Binder(MDS LoggingHouse Binder) --> LoggingHouse(Logging House Extension) | ||
Binder(MDS LoggingHouse Binder) --> ContractTermination(Contract Termination Extension) | ||
MDS(MDS CE) --> Binder | ||
``` | ||
|
||
## License | ||
|
||
Apache License 2.0 - see [LICENSE](../../LICENSE) | ||
|
||
## Contact | ||
|
||
sovity GmbH - [email protected] |
Oops, something went wrong.