Skip to content

qbicsoftware/sample-tracking-helper-lib

Repository files navigation

Sample Tracking Helper API

Build StatusCode Coverage

Sample Tracking Helper API, version 1.0.0-SNAPSHOT - An easy to use interface providing sample tracking update functions for ETL scripts

Author

Created by Andreas Friedrich ([email protected]).

Description

The sample tracking helper library should be only used by ETL scripts and provide a factory method for SampleTracking services. This services can be used to update a sample location status.

The usage is pretty simple:

ServiceCredentials serviceCredentials = new ServiceCredentials()
serviceCredentials.user = "authuser"
serviceCredentials.password = "authpw"
URL serviceRegistryUrl = new URL("https://myservice-registry.de")

sampleTracker = SampleTracker.createQBiCSampleTracker(serviceRegistryUrl, serviceCredentials, location)

where the location object is a String representation in JSON:

{
"location": {
        "name": "QBiC",
        "responsible_person": "QBiC Team",
        "responsible_person_email": "[email protected]",
        "address": {
            "affiliation": "QBiC",
            "street": "Morgenstelle 10",
            "zip_code": 72076,
            "country": "Germany"
        },
        "sample_status": "DATA_AT_QBIC",
        "arrival_date": "2020-03-08T23:00Z"
    }
 }

About

An easy to use interface providing sample tracking update functions for ETL scripts

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •