Package org.labkey.remoteapi.storage
Class StorageRow
java.lang.Object
org.labkey.remoteapi.storage.StorageRow
The storage properties object used for the storage
CreateCommand
, UpdateCommand
, and DeleteCommand
.
This object will define the type of the item along with the specific properties for that storage item.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProps()
getType()
void
The additional properties for the storage item being created/updated can be provided as the "props" for theStorageRow
.void
For theUpdateCommand
andDeleteCommand
, the "rowId" primary key value is required to be set.void
setType
(StorageItemTypes type) Storage items can be of the following types: Physical Location, Freezer, Shelf, Rack, Canister, Storage Unit Type, or Terminal Storage Location.org.json.JSONObject
-
Constructor Details
-
StorageRow
public StorageRow()
-
-
Method Details
-
getType
-
setType
Storage items can be of the following types: Physical Location, Freezer, Shelf, Rack, Canister, Storage Unit Type, or Terminal Storage Location. One of these values must be set as the "type" for theStorageRow
provided to theCreateCommand
,UpdateCommand
, orDeleteCommand
constructor.- Parameters:
type
- Type value for the given storage item/row
-
getProps
-
setProps
The additional properties for the storage item being created/updated can be provided as the "props" for theStorageRow
. The specific set of props will differ for each storage item type:- Physical Location: name, description, locationId (rowId of the parent Physical Location)
- Freezer: name, description, locationId (rowId of the parent Physical Location), manufacturer, freezerModel, temperature, temperatureUnits, serialNumber, sensorName, lossRate, status
- Shelf/Rack/Canister: name, description, locationId (rowId of the parent freezer or Shelf/Rack/Canister)
- 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")
- Terminal Storage Location: name, description, typeId (rowId of the Storage Unit Type), locationId (rowId of the parent freezer or Shelf/Rack/Canister)
- Parameters:
props
- Map of properties for the given storage item/row
-
setRowId
For theUpdateCommand
andDeleteCommand
, the "rowId" primary key value is required to be set. This helper method will put the rowId value into the "props" for thisStorageRow
.- Parameters:
rowId
- Integer rowId primary key for the given storage item/row
-
toJsonObject
public org.json.JSONObject toJsonObject()
-