Skip to content

Commit

Permalink
feat: register basic implementation for EnterpriseEditionResource
Browse files Browse the repository at this point in the history
  • Loading branch information
efiege committed Jul 20, 2023
1 parent 8dea593 commit e98e5d1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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<StoredFile> listStoredFiles() {
return null;
}

@Override
public StoredFile createStoredFileAsset(String storedFileId,
Map<String, String> assetProperties) {
return null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -123,7 +124,8 @@ public static WrapperExtensionContext buildContext(
// Collect all JAX-RS resources
return new WrapperExtensionContext(List.of(
uiResource,
useCaseResource
useCaseResource,
new EnterpriseEditionResourceImpl()
));
}
}

0 comments on commit e98e5d1

Please sign in to comment.