-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Adding Transfer History Page Model(WIP) * feat: Adding Transfer History Page Model * feat: updated data model of transfer entry page * chore: renamed data model of transfer entry page * feat: build dates for LastCommitInfoExtension (#357) * feat: Reworking Last commit Info Extension * chore: make pipeline set both jar and env build date and last commit info, fix wording * Updated CHANGELOG.md --------- * Updated CHANGELOG.md * Updated UiResource to add transferhistorypage endpoint --------- Co-authored-by: Richard Treier <[email protected]>
- Loading branch information
1 parent
b1282bf
commit 438e193
Showing
4 changed files
with
93 additions
and
0 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
55 changes: 55 additions & 0 deletions
55
...er/wrapper/src/main/java/de/sovity/edc/ext/wrapper/api/ui/model/TransferHistoryEntry.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,55 @@ | ||
/* | ||
* Copyright (c) 2022 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.ext.wrapper.api.ui.model; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Data; | ||
|
||
import java.time.OffsetDateTime; | ||
|
||
@Data | ||
@Schema(description = "Transfer History Entry for Transfer History Page") | ||
public class TransferHistoryEntry { | ||
@Schema(description = "Transfer Process ID", requiredMode = Schema.RequiredMode.REQUIRED) | ||
private String transferProcessId; | ||
|
||
@Schema(description = "Created Date", requiredMode = Schema.RequiredMode.REQUIRED) | ||
private OffsetDateTime createdDate; | ||
|
||
@Schema(description = "Last Change Date", requiredMode = Schema.RequiredMode.REQUIRED) | ||
private OffsetDateTime lastUpdatedDate; | ||
|
||
@Schema(description = "Transfer History State", requiredMode = Schema.RequiredMode.REQUIRED) | ||
private TransferProcessState state; | ||
|
||
@Schema(description = "Contract Agreement ID", requiredMode = Schema.RequiredMode.REQUIRED) | ||
private String contractAgreementId; | ||
|
||
@Schema(description = "Incoming vs Outgoing", requiredMode = Schema.RequiredMode.REQUIRED) | ||
private ContractAgreementDirection direction; | ||
|
||
@Schema(description = "Other Connector's Endpoint", requiredMode = Schema.RequiredMode.REQUIRED) | ||
private String counterPartyConnectorEndpoint; | ||
|
||
@Schema(description = "Asset Name", requiredMode = Schema.RequiredMode.REQUIRED) | ||
private String assetName; | ||
|
||
@Schema(description = "Asset ID", requiredMode = Schema.RequiredMode.REQUIRED) | ||
private String assetId; | ||
|
||
@Schema(description = "Error Message") | ||
private String errorMessage; | ||
|
||
} |
28 changes: 28 additions & 0 deletions
28
...per/wrapper/src/main/java/de/sovity/edc/ext/wrapper/api/ui/model/TransferHistoryPage.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,28 @@ | ||
/* | ||
* Copyright (c) 2022 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.ext.wrapper.api.ui.model; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
|
||
import java.util.List; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
public class TransferHistoryPage { | ||
@Schema(description = "Transfer History Page Entries", requiredMode = Schema.RequiredMode.REQUIRED) | ||
private List<TransferHistoryEntry> transferEntries; | ||
} |