Skip to content

Commit a561ac0

Browse files
Merge pull request #263 from qbicsoftware/release/2.13.0
Release/2.13.0
2 parents 69d2345 + 385bf76 commit a561ac0

File tree

9 files changed

+57
-9
lines changed

9 files changed

+57
-9
lines changed

.qube.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ email: sven.fillinger@qbic.uni-tuebingen.de
44
project_name: data-model-lib
55
project_short_description: "Data models. A collection of QBiC's central data models\
66
\ and DTOs. "
7-
version: 2.12.1
7+
version: 2.13.0
88
domain: lib
99
language: groovy
1010
project_slug: data-model-lib

CHANGELOG.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@ Changelog
44

55
This project adheres to `Semantic Versioning <https://semver.org/>`_.
66

7+
2.13.0 (2021-10-13)
8+
-------------------
9+
10+
**Added**
11+
12+
* Added new product type ``life.qbic.datamodel.dtos.business.services.ExternalServiceProduct`` (#262)
13+
* Added new ``Facility`` enum ``CEGAT`` in ``life.qbic.datamodel.dtos.business.facilities.Facility`` (#262)
14+
* Added new product type ``EXTERNAL_SERVICE`` for ``life.qbic.datamodel.dtos.business.ProductCategory`` (#262)
15+
16+
**Fixed**
17+
18+
**Dependencies**
19+
20+
**Deprecated**
21+
722
2.12.1 (2021-09-13)
823
-------------------
924

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@
5555
# the built documents.
5656
#
5757
# The short X.Y version.
58-
version = '2.12.1'
58+
version = '2.13.0'
5959
# The full version, including alpha/beta/rc tags.
60-
release = '2.12.1'
60+
release = '2.13.0'
6161

6262
# The language for content autogenerated by Sphinx. Refer to documentation
6363
# for a list of supported languages.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<groupId>life.qbic</groupId>
99
<artifactId>data-model-lib</artifactId>
10-
<version>2.12.1</version> <!-- <<QUBE_FORCE_BUMP>> -->
10+
<version>2.13.0</version> <!-- <<QUBE_FORCE_BUMP>> -->
1111
<name>data-model-lib</name>
1212
<url>http://github.com/qbicsoftware/data-model-lib</url>
1313
<description>Data models. A collection of QBiC's central data models and DTOs. </description>

qube.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 2.12.1
2+
current_version = 2.13.0
33

44
[bumpversion_files_whitelisted]
55
dot_qube = .qube.yml

src/main/groovy/life/qbic/datamodel/dtos/business/ProductCategory.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ enum ProductCategory {
1515
SECONDARY_BIOINFO("Secondary Bioinformatics"),
1616
DATA_STORAGE("Data Storage"),
1717
PROTEOMIC("Proteomics"),
18-
METABOLOMIC("Metabolomics")
18+
METABOLOMIC("Metabolomics"),
19+
EXTERNAL_SERVICE("External Service")
1920

2021
/**
2122
* Value describing the enum type with a string

src/main/groovy/life/qbic/datamodel/dtos/business/facilities/Facility.groovy

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ package life.qbic.datamodel.dtos.business.facilities
1010
* <li>IMGAG: Institute for Medical Genetics and Applied Genomics</li>
1111
* <li>MGM: Institute for Medical Microbiology and Hygiene</li>
1212
* <li>QBIC: Quantitative Biology Center</li>
13-
* <li>PCT: Proteome Center Tübingen</li>
13+
* <li>CFMB_PCT: Proteomics Facility Tübingen</li>
14+
* <li>CEGAT: CeGaT GmbH</li>
1415
* </ul>
1516
*
1617
* @since 2.11.0
@@ -21,7 +22,8 @@ enum Facility {
2122
IMGAG("Institute for Medical Genetics and Applied Genomics", "IMGAG"),
2223
MGM("Institute for Medical Microbiology and Hygiene", "MGM"),
2324
QBIC("Quantitative Biology Center", "QBIC"),
24-
CFMB_PCT("Proteomics Facility Tübingen", "Proteomics Facility")
25+
CFMB_PCT("Proteomics Facility Tübingen", "Proteomics Facility"),
26+
CEGAT("CeGaT GmbH", "CeGaT GmbH")
2527

2628
private final String fullName
2729
private final String label
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package life.qbic.datamodel.dtos.business.services
2+
3+
import groovy.transform.EqualsAndHashCode
4+
import life.qbic.datamodel.dtos.business.ProductId
5+
import life.qbic.datamodel.dtos.business.facilities.Facility
6+
7+
/**
8+
* <p>External service product</p>
9+
*
10+
* <p>Represents a service product that is offered through QBiC by an external partner.</p>
11+
*
12+
* @since 2.13.0
13+
*/
14+
@EqualsAndHashCode(callSuper = true)
15+
class ExternalServiceProduct extends PartialProduct {
16+
/**
17+
* Creates an instance of an {@link ExternalServiceProduct}.
18+
* @param name The name of the product
19+
* @param description A product description
20+
* @param internalUnitPrice The net internal unit price of the product
21+
* @param externalUnitPrice The net external unit price of the product
22+
* @param unit The unit of the product
23+
* @param productId A product id, uniquely identifying the product in the offer environment
24+
* @param serviceProvider The service provider
25+
*/
26+
ExternalServiceProduct(String name, String description, double internalUnitPrice, double externalUnitPrice, ProductUnit unit, long runningNumber, Facility serviceProvider) {
27+
super(name, description, internalUnitPrice, externalUnitPrice, unit, new ProductId.Builder(ProductType.EXTERNAL_SERVICE.toString(), runningNumber).build(), serviceProvider)
28+
}
29+
}

src/main/groovy/life/qbic/datamodel/dtos/business/services/ProductType.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ enum ProductType {
1515
SECONDARY_BIOINFO("SB"),
1616
DATA_STORAGE("DS"),
1717
PROTEOMIC("PR"),
18-
METABOLOMIC("ME")
18+
METABOLOMIC("ME"),
19+
EXTERNAL_SERVICE("EXT")
1920

2021
/**
2122
Holds the String value of the enum

0 commit comments

Comments
 (0)