Skip to content

Commit

Permalink
deprecate BatchRegistrationDialog.java
Browse files Browse the repository at this point in the history
  • Loading branch information
KochTobi committed Oct 1, 2024
1 parent 086234c commit 1b3110f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,20 +134,6 @@ public ExperimentDetailsComponent(
this.terminologyService = terminologyService;
this.cancelConfirmationDialogFactory = requireNonNull(cancelConfirmationDialogFactory);
this.addClassName("experiment-details-component");
Button download = new Button("Registration Template");
download.addClickListener(buttonClickEvent -> {
try (XSSFWorkbook workbook = templateService.sampleBatchRegistrationXLSXTemplate(
context.projectId().orElseThrow().value(),
context.experimentId().orElseThrow().value())) {
var downloadProvider = new DownloadProvider(new XLSXDownloadContentProvider(
context.projectId().orElseThrow().value() + "_registration_template.xlsx", workbook));
add(downloadProvider);
downloadProvider.trigger();
} catch (IOException e) {
throw new RuntimeException(e);
}
});
this.add(download);
Button updateTemplate = new Button("Update Template");
updateTemplate.addClickListener(buttonClickEvent -> {
try (XSSFWorkbook workbook = templateService.sampleBatchUpdateXLSXTemplate(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@

/**
* A dialog used for sample batch registration.
* @deprecated this is replaced by {@link RegisterSampleBatchDialog}
*/
@Deprecated(forRemoval = true, since = "1.4.0")
public class BatchRegistrationDialog extends DialogWindow {

private final TextField batchNameField;
Expand Down

0 comments on commit 1b3110f

Please sign in to comment.