Constructor and Description |
---|
SampleService() |
Modifier and Type | Method and Description |
---|---|
protected Storage |
createChildrenStorage(StorageLocation currentLocation,
Storage currentStorage,
String depositor)
Creates storage for all children of given parent storage
|
protected Storage |
createPlate96Location(String sampleDepositor,
StorageLocation mainLocation)
Creates location records for a sample contained in a 96 well plate
Provides support for 2-D barcoded systems.
|
PartSample |
createSample(String userId,
String entryId,
PartSample partSample,
String strainNamePrefix) |
protected Storage |
createShelfStorage(String depositor,
StorageLocation shelf) |
protected Storage |
createStorage(String userId,
String name,
SampleType sampleType) |
boolean |
delete(String userId,
long partId,
long sampleId)
Deletes specified sample for entry and all associated storage locations
|
ArrayList<PartSample> |
getSamplesByBarcode(String userId,
String barcode) |
List<PartSample> |
retrieveEntrySamples(String userId,
String entryId) |
protected PartSample |
setAccountInfo(PartSample partSample,
String email) |
protected Storage createStorage(String userId, String name, SampleType sampleType)
public PartSample createSample(String userId, String entryId, PartSample partSample, String strainNamePrefix)
protected Storage createPlate96Location(String sampleDepositor, StorageLocation mainLocation)
sampleDepositor
- userID - unique identifier for user performing actionmainLocation
- 96 well plate locationprotected Storage createShelfStorage(String depositor, StorageLocation shelf)
protected Storage createChildrenStorage(StorageLocation currentLocation, Storage currentStorage, String depositor)
currentLocation
- storage locationcurrentStorage
- depositor
- userID - unique identifier for user performing actionpublic List<PartSample> retrieveEntrySamples(String userId, String entryId)
protected PartSample setAccountInfo(PartSample partSample, String email)
public boolean delete(String userId, long partId, long sampleId)
userId
- unique identifier for user performing actionpartId
- unique identifier for part that is associated with this samplesampleId
- unique identifier for sample being deletedpublic ArrayList<PartSample> getSamplesByBarcode(String userId, String barcode)
Copyright © 2017. All rights reserved.