From e98e5d1c875c1033a22156b2a60d9223acd5ae4f Mon Sep 17 00:00:00 2001 From: Eric Fiege Date: Thu, 20 Jul 2023 13:56:14 +0200 Subject: [PATCH] feat: register basic implementation for EnterpriseEditionResource --- .../api/ee/EnterpriseEditionResourceImpl.java | 25 +++++++++++++++++++ .../WrapperExtensionContextBuilder.java | 4 ++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 extensions/wrapper/wrapper-ee-api/src/main/java/de/sovity/edc/ext/wrapper/api/ee/EnterpriseEditionResourceImpl.java diff --git a/extensions/wrapper/wrapper-ee-api/src/main/java/de/sovity/edc/ext/wrapper/api/ee/EnterpriseEditionResourceImpl.java b/extensions/wrapper/wrapper-ee-api/src/main/java/de/sovity/edc/ext/wrapper/api/ee/EnterpriseEditionResourceImpl.java new file mode 100644 index 000000000..bc5e7d76a --- /dev/null +++ b/extensions/wrapper/wrapper-ee-api/src/main/java/de/sovity/edc/ext/wrapper/api/ee/EnterpriseEditionResourceImpl.java @@ -0,0 +1,25 @@ +package de.sovity.edc.ext.wrapper.api.ee; + +import de.sovity.edc.ext.wrapper.api.ee.model.ConnectorLimits; +import de.sovity.edc.ext.wrapper.api.ee.model.StoredFile; + +import java.util.List; +import java.util.Map; + +public class EnterpriseEditionResourceImpl implements EnterpriseEditionResource { + @Override + public ConnectorLimits connectorLimits() { + return new ConnectorLimits(-1, -1); + } + + @Override + public List listStoredFiles() { + return null; + } + + @Override + public StoredFile createStoredFileAsset(String storedFileId, + Map assetProperties) { + return null; + } +} diff --git a/extensions/wrapper/wrapper/src/main/java/de/sovity/edc/ext/wrapper/WrapperExtensionContextBuilder.java b/extensions/wrapper/wrapper/src/main/java/de/sovity/edc/ext/wrapper/WrapperExtensionContextBuilder.java index 31d3080ac..b29f79ec6 100644 --- a/extensions/wrapper/wrapper/src/main/java/de/sovity/edc/ext/wrapper/WrapperExtensionContextBuilder.java +++ b/extensions/wrapper/wrapper/src/main/java/de/sovity/edc/ext/wrapper/WrapperExtensionContextBuilder.java @@ -15,6 +15,7 @@ package de.sovity.edc.ext.wrapper; import com.fasterxml.jackson.databind.ObjectMapper; +import de.sovity.edc.ext.wrapper.api.ee.EnterpriseEditionResourceImpl; import de.sovity.edc.ext.wrapper.api.ui.UiResource; import de.sovity.edc.ext.wrapper.api.ui.pages.contracts.ContractAgreementPageApiService; import de.sovity.edc.ext.wrapper.api.ui.pages.contracts.ContractAgreementTransferApiService; @@ -123,7 +124,8 @@ public static WrapperExtensionContext buildContext( // Collect all JAX-RS resources return new WrapperExtensionContext(List.of( uiResource, - useCaseResource + useCaseResource, + new EnterpriseEditionResourceImpl() )); } }