|
2 | 2 |
|
3 | 3 | import static java.util.Objects.nonNull;
|
4 | 4 |
|
| 5 | +import java.nio.ByteBuffer; |
5 | 6 | import java.util.Collection;
|
6 | 7 | import java.util.List;
|
7 | 8 | import java.util.Optional;
|
|
10 | 11 | import life.qbic.application.commons.SortOrder;
|
11 | 12 | import life.qbic.projectmanagement.application.batch.SampleUpdateRequest.SampleInformation;
|
12 | 13 | import life.qbic.projectmanagement.application.confounding.ConfoundingVariableService.ConfoundingVariableInformation;
|
13 |
| -import life.qbic.projectmanagement.application.sample.SampleIdCodeEntry; |
14 | 14 | import life.qbic.projectmanagement.application.sample.SamplePreview;
|
15 | 15 | import life.qbic.projectmanagement.domain.model.sample.Sample;
|
16 |
| -import life.qbic.projectmanagement.domain.model.sample.SampleId; |
17 | 16 | import life.qbic.projectmanagement.domain.model.sample.SampleRegistrationRequest;
|
18 | 17 | import org.springframework.lang.Nullable;
|
19 | 18 | import reactor.core.publisher.Flux;
|
@@ -116,6 +115,34 @@ Mono<ProjectCreationResponse> create(ProjectCreationRequest request)
|
116 | 115 | throws UnknownRequestException, RequestFailedException, AccessDeniedException;
|
117 | 116 |
|
118 | 117 |
|
| 118 | + /** |
| 119 | + * Returns a reactive stream of a zipped RO-Crate encoded in UTF-8. |
| 120 | + * <p> |
| 121 | + * The content represents a project summary with information about the research project. |
| 122 | + * <p> |
| 123 | + * Currently, the RO-Crate contains three files: |
| 124 | + * |
| 125 | + * <pre> |
| 126 | + * ro-crate-metadata.json // required by the RO-Crate specification |
| 127 | + * project-summary.docx // docx version of <a href="https://schema.org/ResearchProject">ResearchProject</a> |
| 128 | + * project-summary.yml // yaml encoding of <a href="https://schema.org/ResearchProject">ResearchProject</a> |
| 129 | + * </pre> |
| 130 | + * |
| 131 | + * <b>Exceptions</b> |
| 132 | + * <p> |
| 133 | + * Exceptions are wrapped as {@link Mono#error(Throwable)} and are one of the types described in |
| 134 | + * the throw section below. |
| 135 | + * |
| 136 | + * @param projectId the project ID for the project the RO-Crate |
| 137 | + * @return a reactive stream of the zipped RO-Crate. Exceptions are provided as |
| 138 | + * {@link Mono#error(Throwable)}. |
| 139 | + * @throws RequestFailedException in case the request cannot be processed |
| 140 | + * @throws AccessDeniedException in case of insufficient rights |
| 141 | + * @since 1.10.0 |
| 142 | + */ |
| 143 | + Flux<ByteBuffer> roCrateSummary(String projectId) |
| 144 | + throws RequestFailedException, AccessDeniedException; |
| 145 | + |
119 | 146 | /**
|
120 | 147 | * Requests {@link SamplePreview} for a given experiment with pagination support.
|
121 | 148 | * <p>
|
|
0 commit comments