Skip to content

Commit 6741e83

Browse files
Add Primary Storage as a StorageItemType (#44)
1 parent a59102b commit 6741e83

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

labkey-client-api/CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# The LabKey Remote API Library for Java - Change Log
22

3-
## version 4.1.0-SNAPSHOT
4-
*Released*: TBD
3+
## version 4.1.0
4+
*Released*: 15 December 2022
55
* Migrate internal HTTP handling to use Apache HttpClient 5.2
66
* Generate and execute path-first URLs
7+
* Add PrimaryStorage a new StorageItemTypes for non-freezer storage
78

89
## version 4.0.0
910
*Released*: 26 October 2022

labkey-client-api/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ repositories {
4848

4949
group "org.labkey.api"
5050

51-
version "4.1.0-SNAPSHOT"
51+
version "4.2.0-SNAPSHOT"
5252

5353
dependencies {
5454
api "org.json:json:${jsonObjectVersion}"

labkey-client-api/src/org/labkey/remoteapi/storage/CreateCommand.java

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
11
package org.labkey.remoteapi.storage;
22

33
/**
4-
* Create a new LabKey Freezer Manager storage item that can be used in the creation of a freezer hierarchy.
5-
* Freezer hierarchies consist of a top level Freezer, which can have any combination of child non-terminal storage
6-
* locations (i.e. those that do not directly contain samples but can contain other units) and terminal storage
7-
* locations (i.e. units in the freezer that directly contain samples and cannot contain other units).
4+
* Create a new LabKey Freezer Manager storage item that can be used in the creation of a storage hierarchy.
5+
* Storage hierarchies consist of a top level Freezer or Primary Storage, which can have any combination of
6+
* child non-terminal storage locations (i.e., those that do not directly contain samples but can contain other
7+
* units) and terminal storage locations (i.e., units in the storage location that directly contain samples and cannot contain
8+
* other units).
89
* See the <a href="https://www.labkey.org/SampleManagerHelp/wiki-page.view?name=createFreezer">LabKey Documentation</a>
910
* for further details.
1011
* <p>
11-
* A freezer may also have a parent hierarchy, which defines the physical location of the freezer.
12+
* A storage location may also have a parent hierarchy, which defines the physical location of the storage location.
1213
* See the <a href="https://www.labkey.org/SampleManagerHelp/wiki-page.view?name=freezerLocation">LabKey Documentation</a>
1314
* for further details.
1415
* <p>
15-
* Storage items can be of the following types: Physical Location, Freezer, Shelf, Rack, Canister,
16+
* Storage items can be of the following types: Physical Location, Freezer, Primary Storage, Shelf, Rack, Canister,
1617
* Storage Unit Type, or Terminal Storage Location. One of these values must be set as the "type" for
1718
* the {@link StorageRow} provided to the CreateCommand constructor.
1819
* <p>
1920
* The additional properties for the storage item being created can be provided as the "props" for the
2021
* {@link StorageRow}. The specific set of props will differ for each storage item type:
2122
* <ul>
2223
* <li>Physical Location: name, description, locationId (rowId of the parent Physical Location)</li>
23-
* <li>Freezer: name, description, locationId (rowId of the parent Physical Location), manufacturer, freezerModel, temperature, temperatureUnits, serialNumber, sensorName, lossRate, status</li>
24-
* <li>Shelf/Rack/Canister: name, description, locationId (rowId of the parent freezer or Shelf/Rack/Canister)</li>
24+
* <li>Freezer: name, description, locationId (rowId of the parent Physical Location), manufacturer, freezerModel, temperature, temperatureUnits, serialNumber, sensorName, lossRate, status, temperatureControlled (boolean)</li>
25+
* <li>Primary Storage: name, description, locationId (rowId of the parent Physical Location), temperatureControlled (boolean)</li>
26+
* <li>Shelf/Rack/Canister: name, description, locationId (rowId of the parent freezer, primary storage, or Shelf/Rack/Canister)</li>
2527
* <li>Storage Unit Type: name, description, unitType (one of the following: "Box", "Plate", "Bag", "Cane", "Tube Rack"), rows, cols (required if positionFormat is not "Num"), positionFormat (one of the following: "Num", "AlphaNum", "AlphaAlpha", "NumAlpha", "NumNum"), positionOrder (one of the following: "RowColumn", "ColumnRow")</li>
26-
* <li>Terminal Storage Location: name, description, typeId (rowId of the Storage Unit Type), locationId (rowId of the parent freezer or Shelf/Rack/Canister)</li>
28+
* <li>Terminal Storage Location: name, description, typeId (rowId of the Storage Unit Type), locationId (rowId of the parent freezer, primary storage or Shelf/Rack/Canister)</li>
2729
* </ul>
2830
* <p>
2931
* Examples:

labkey-client-api/src/org/labkey/remoteapi/storage/StorageItemTypes.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public enum StorageItemTypes
1919
{
2020
PhysicalLocation("Physical Location"),
2121
Freezer("Freezer"),
22+
PrimaryStorage("Primary Storage"),
2223
Shelf("Shelf"),
2324
Rack("Rack"),
2425
Canister("Canister"),

0 commit comments

Comments
 (0)