Skip to content

Commit 5d4f47c

Browse files
Add display name to status (#282)
* Add displayName for sample status, add deprecated annotation
1 parent eb88575 commit 5d4f47c

File tree

2 files changed

+50
-13
lines changed

2 files changed

+50
-13
lines changed

CHANGELOG.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ This project adheres to `Semantic Versioning <https://semver.org/>`_.
99

1010
**Added**
1111

12+
* Add displayName to ``life.qbic.datamodel.samples.Status`` (#282)
13+
1214
**Fixed**
1315

1416
**Dependencies**

src/main/groovy/life/qbic/datamodel/samples/Status.groovy

Lines changed: 48 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,56 @@ package life.qbic.datamodel.samples;
44
* The status of an sample in the context of <a href="https://github.com/qbicsoftware/sample-tracking-service">sample-tracking</a>
55
*/
66
public enum Status {
7-
SAMPLE_QC_FAIL,
8-
SAMPLE_QC_PASS,
9-
SAMPLE_RECEIVED,
10-
LIBRARY_PREP_FINISHED,
11-
SEQUENCING,
12-
SEQUENCING_COMPLETE,
13-
METADATA_REGISTERED,
14-
WAITING,
15-
PROCESSING,
16-
FAILED_QC,
17-
PROCESSED,
18-
DATA_AVAILABLE,
7+
SAMPLE_QC_FAIL ("Sample QC Fail"),
8+
SAMPLE_QC_PASS ("Sample QC Pass"),
9+
SAMPLE_RECEIVED ("Sample Received"),
10+
LIBRARY_PREP_FINISHED ("Library Prep Finished"),
11+
/**
12+
* @deprecated this is deprecated since 2.16.0 please use {@link #SEQUENCING_COMPLETE} instead
13+
*/
14+
@Deprecated
15+
SEQUENCING ("Sequencing"),
16+
SEQUENCING_COMPLETE ("Sequencing Complete"),
17+
METADATA_REGISTERED ("Metadata Registered"),
18+
/**
19+
* @deprecated this is deprecated since 2.16.0
20+
*/
21+
@Deprecated
22+
WAITING ("Waiting"),
23+
/**
24+
* @deprecated this is deprecated since 2.16.0
25+
*/
26+
@Deprecated
27+
PROCESSING ("Processing"),
28+
/**
29+
* @deprecated this is deprecated since 2.16.0 please use {@link #SAMPLE_QC_FAIL} instead
30+
*/
31+
@Deprecated
32+
FAILED_QC ("Failed QC"),
33+
/**
34+
* @deprecated this is deprecated since 2.16.0
35+
*/
36+
@Deprecated
37+
PROCESSED ("Processed"),
38+
DATA_AVAILABLE ("Data Available"),
1939
/**
2040
* @deprecated this is deprecated since 2.4.0 please use {@link #DATA_AVAILABLE} instead
2141
*/
2242
@Deprecated
23-
DATA_AT_QBIC
43+
DATA_AT_QBIC ("Data at QBiC")
44+
45+
private final displayName
46+
47+
private Status(String displayName){
48+
this.displayName = displayName
49+
}
50+
51+
/**
52+
* Returns to the enum item display name
53+
* @return
54+
*/
55+
String getDisplayName() {
56+
return this.displayName
57+
}
58+
2459
}

0 commit comments

Comments
 (0)