-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support xlsx upload for measurement metadata registration (#803)
Adds XLSX file upload support for measurement metadata registration. Solves #677 Co-authored-by: KochTobi <[email protected]> (cherry picked from commit 5de2e98)
- Loading branch information
Showing
15 changed files
with
901 additions
and
390 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
52 changes: 52 additions & 0 deletions
52
user-interface/src/main/java/life/qbic/datamanager/parser/MeasurementMetadataConverter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
package life.qbic.datamanager.parser; | ||
|
||
import java.util.List; | ||
import life.qbic.projectmanagement.application.measurement.MeasurementMetadata; | ||
|
||
/** | ||
* <b>Measurement Metadata Converter</b> | ||
* <p> | ||
* Measurement metadata converter enable the client to process a {@link ParsingResult} object and | ||
* convert them into known implementations of the {@link MeasurementMetadata} interface. | ||
* | ||
* @since 1.4.0 | ||
*/ | ||
public interface MeasurementMetadataConverter { | ||
|
||
/** | ||
* Takes an instance of {@link ParsingResult} and tries to convert it to known implementations of | ||
* the {@link MeasurementMetadata} interface. | ||
* <p> | ||
* Currently supported implementations are: | ||
* | ||
* <ul> | ||
* <li>NGS Measurement Metadata {@link life.qbic.projectmanagement.application.measurement.NGSMeasurementMetadata}</li> | ||
* <li>Proteomics Measurement Metadata {@link life.qbic.projectmanagement.application.measurement.ProteomicsMeasurementMetadata}</li> | ||
* </ul> | ||
* | ||
* @param parsingResult the parsing result to take as input for the conversion. | ||
* @param ignoreMeasurementId weather to ignore the measurement identifier or not | ||
* @return a list of converted implementations of {@link MeasurementMetadata}. | ||
* @throws UnknownMetadataTypeException if no matching implementation of | ||
* {@link MeasurementMetadata} can be associated from the | ||
* provided {@link ParsingResult#keys()}. | ||
* @since 1.4.0 | ||
*/ | ||
List<? extends MeasurementMetadata> convert(ParsingResult parsingResult, | ||
boolean ignoreMeasurementId) | ||
throws UnknownMetadataTypeException; | ||
|
||
class UnknownMetadataTypeException extends RuntimeException { | ||
|
||
public UnknownMetadataTypeException(String message) { | ||
super(message); | ||
} | ||
} | ||
|
||
class MissingSampleIdException extends RuntimeException { | ||
public MissingSampleIdException(String message) { | ||
super(message); | ||
} | ||
} | ||
|
||
} |
Oops, something went wrong.