@@ -100,7 +100,7 @@ public class ExperimentDetailsComponent extends PageArea {
100
100
private final Disclaimer noExperimentalVariablesDefined ;
101
101
private final Disclaimer noExperimentalGroupsDefined ;
102
102
private final Disclaimer addExperimentalVariablesNote ;
103
- private final DeletionService deletionService ;
103
+ private final transient DeletionService deletionService ;
104
104
private final transient TerminologyService terminologyService ;
105
105
private final transient MessageSourceNotificationFactory messageSourceNotificationFactory ;
106
106
private final transient CancelConfirmationDialogFactory cancelConfirmationDialogFactory ;
@@ -211,7 +211,8 @@ private void onEditButtonClicked() {
211
211
"Experiment information could not be retrieved from service" );
212
212
}
213
213
214
- Map <SampleOriginType , Set <OntologyTerm >> usedTerms = getOntologyTermsUsedInSamples (experimentId );
214
+ Map <SampleOriginType , Set <OntologyTerm >> usedTerms = getOntologyTermsUsedInSamples (
215
+ experimentId );
215
216
216
217
optionalExperiment .ifPresent (experiment -> {
217
218
EditExperimentDialog editExperimentDialog = new EditExperimentDialog (
@@ -246,7 +247,8 @@ private void showCancelConfirmationDialog(EditExperimentDialog editExperimentDia
246
247
.open ();
247
248
}
248
249
249
- private Map <SampleOriginType , Set <OntologyTerm >> getOntologyTermsUsedInSamples (ExperimentId experimentId ) {
250
+ private Map <SampleOriginType , Set <OntologyTerm >> getOntologyTermsUsedInSamples (
251
+ ExperimentId experimentId ) {
250
252
Map <SampleOriginType , Set <OntologyTerm >> result = new EnumMap <>(SampleOriginType .class );
251
253
Collection <Sample > samples = sampleInformationService .retrieveSamplesForExperiment (experimentId )
252
254
.valueOrElse (new ArrayList <>());
@@ -725,6 +727,11 @@ public static BioIcon getDefaultBioIcon(SampleSourceType sampleSourceType) {
725
727
};
726
728
}
727
729
730
+ public static List <BioIcon > getOptionsForType (SampleSourceType type ) {
731
+ return Arrays .stream (BioIcon .values ()).filter (o ->
732
+ o .getType ().equals (type )).toList ();
733
+ }
734
+
728
735
public String getLabel () {
729
736
return label ;
730
737
}
@@ -737,17 +744,19 @@ public IconResource getIconResource() {
737
744
return iconResource ;
738
745
}
739
746
740
- public static List <BioIcon > getOptionsForType (SampleSourceType type ) {
741
- return Arrays .stream (BioIcon .values ()).filter (o ->
742
- o .getType ().equals (type )).toList ();
743
- }
744
-
745
747
private static class Constants {
746
748
747
749
public static final String DEFAULT_LABEL = "default" ;
748
750
}
749
751
}
750
752
753
+ /**
754
+ * Describes the source level of a sample: species, specimen or analyte
755
+ */
756
+ public enum SampleSourceType {
757
+ SPECIES , SPECIMEN , ANALYTE
758
+ }
759
+
751
760
/**
752
761
* Wrapper class for different icon resources, e.g. VaadinIcons or custom SVGs. Provides a method
753
762
* to create the respective Icon component.
@@ -773,11 +782,4 @@ public AbstractIcon createIcon() {
773
782
}
774
783
}
775
784
}
776
-
777
- /**
778
- * Describes the source level of a sample: species, specimen or analyte
779
- */
780
- public enum SampleSourceType {
781
- SPECIES , SPECIMEN , ANALYTE
782
- }
783
785
}
0 commit comments