Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: register basic implementation for EnterpriseEditionResource #438

Merged
merged 1 commit into from
Jul 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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()
));
}
}
Loading