Package uk.ac.gda.client.mx.ispyb
Interface ISpyBVersion2
- All Superinterfaces:
SampleModelProvider
- All Known Implementing Classes:
_ISpyBVersion2
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddBLSampleRecordToShipment(SampleRecord blSampleRecord) Add record representing BLSample to shipment and adds all other required variables Runs commitvoidvoidclear all cachesdna.xml.ContainercreateContainer(String code, Integer dewarId, String sampleChangerLocation, Integer capacity) dna.xml.ContainercreateContainer(String code, Integer dewarId, String sampleChangerLocation, String typeId, Integer capacity) create container - add to container cachedna.xml.CrystalcreateCrystal(String name, String spaceGroup, Integer diffractionPlanId, Integer proteinId) create crystal - add to container crystaldna.xml.DewarcreateDewar(String code, Integer shippingId) voidcreateDewarTransportHistory(Integer dewarId, String dewarStatus, String storageLocation) dna.xml.ProteincreateProtein(String acronym, String name, Integer proposalId) createSampleRecord(boolean doCommit) dna.xml.ShippingcreateShipping(String shippingName, Integer proposalId, Integer sessionId) dna.xml.ContainergetContainer(Integer containerId) RecordCache<dna.xml.Container> dna.xml.Container[]getContainers(boolean refresh) dna.xml.CrystalgetCrystalRecord(int crystalId) dna.xml.Crystal[]getCrystalRecords(dna.xml.Protein parent, boolean refresh) getCurrentShipment(boolean refresh) dna.xml.Containerdna.xml.Dewardna.xml.Shippingdna.xml.DewargetDewarIdFromSampleRecord(SampleRecord element) dna.xml.Dewar[]getDewarRecords(boolean refresh) dna.xml.ProteingetProteinRecord(int proteinId) dna.xml.Protein[]getProteinRecords(boolean refresh) getSampleRecordFromShipmentForSampleId(List<SampleRecord> sampleList2, Integer blsampleId) dna.xml.ShippinggetShipping(Integer shippingId) dna.xml.ShippingHasSession[]getShippingHasSessionRecords(boolean refresh) dna.xml.ShippingHasSession[]getShippingHasSessionRecords(boolean refresh, Integer shippingId) dna.xml.Shipping[]getShippingRecords(boolean refresh) booleanisInSampleChanger(SampleRecord sampleRecord) booleanisToBeManuallyLoaded(SampleRecord sampleRecord) voidsetContainerCapacity(Integer containerId, Integer capacity) voidsetContainerSampleLocation(Integer containerId, String location) updates Container cache and currentShipment.voidsetContainerType(Integer containerId, String conType) Methods inherited from interface gda.px.util.SampleModelProvider
constructSample, getSampleModel
-
Method Details
-
getSampleManager
SampleManager getSampleManager() -
getContainerCache
RecordCache<dna.xml.Container> getContainerCache() -
getDewarRecords
dna.xml.Dewar[] getDewarRecords(boolean refresh) -
getShippingRecords
dna.xml.Shipping[] getShippingRecords(boolean refresh) -
getCrystalRecords
dna.xml.Crystal[] getCrystalRecords(dna.xml.Protein parent, boolean refresh) -
getProteinRecords
dna.xml.Protein[] getProteinRecords(boolean refresh) -
getContainers
dna.xml.Container[] getContainers(boolean refresh) -
getContainer
-
getDewar
-
getShipping
-
setContainerCapacity
- Throws:
Exception
-
setContainerSampleLocation
updates Container cache and currentShipment. But commits neither - you only need to commit one.- Parameters:
containerId-location-- Throws:
Exception
-
setContainerType
- Throws:
Exception
-
getProteinRecord
dna.xml.Protein getProteinRecord(int proteinId) -
getCrystalRecord
dna.xml.Crystal getCrystalRecord(int crystalId) -
getDefaultDiffractionPlanId
Integer getDefaultDiffractionPlanId() -
getDefaultContainer
dna.xml.Container getDefaultContainer() -
getDefaultDewar
dna.xml.Dewar getDefaultDewar() -
getDefaultShipping
dna.xml.Shipping getDefaultShipping() -
getCurrentShipment
-
createContainer
dna.xml.Container createContainer(String code, Integer dewarId, String sampleChangerLocation, String typeId, Integer capacity) throws Exception create container - add to container cache- Parameters:
code-dewarId-sampleChangerLocation-typeId-capacity-- Returns:
- Container
- Throws:
Exception
-
createContainer
dna.xml.Container createContainer(String code, Integer dewarId, String sampleChangerLocation, Integer capacity) throws Exception - Throws:
Exception
-
createDewar
- Throws:
Exception
-
createShipping
dna.xml.Shipping createShipping(String shippingName, Integer proposalId, Integer sessionId) throws Exception - Throws:
Exception
-
createDewarTransportHistory
void createDewarTransportHistory(Integer dewarId, String dewarStatus, String storageLocation) throws Exception - Throws:
Exception
-
createCrystal
dna.xml.Crystal createCrystal(String name, String spaceGroup, Integer diffractionPlanId, Integer proteinId) throws Exception create crystal - add to container crystal- Parameters:
name-spaceGroup-diffractionPlanId-proteinId-- Returns:
- crystal
- Throws:
Exception
-
createProtein
- Throws:
Exception
-
addBLSampleRecordToShipment
Add record representing BLSample to shipment and adds all other required variables Runs commit- Parameters:
blSampleRecord-- Throws:
Exception
-
clearCaches
void clearCaches()clear all caches -
getProposalId
Integer getProposalId() -
afterPropertiesSet
- Throws:
Exception
-
getCurrentBeamline
String getCurrentBeamline() -
getCurrentProposalId
Integer getCurrentProposalId() -
getCurrentVisitString
String getCurrentVisitString() -
getCurrentSessionId
Integer getCurrentSessionId() -
createSampleRecord
-
getContainerCodeFromSampleRecord
-
getContainerTypeIdFromSampleRecord
-
getProteinCodeFromSampleRecord
-
getProteinNameFromSampleRecord
-
getBLSampleLocationFromSampleRecord
-
getContainerSampleChangerLocationFromSampleRecord
-
getSampleCommentFromSampleRecord
-
getSampleRecordFromShipmentForSampleId
SampleRecord getSampleRecordFromShipmentForSampleId(List<SampleRecord> sampleList2, Integer blsampleId) -
getDewarIdFromSampleRecord
-
isToBeManuallyLoaded
-
isInSampleChanger
-
getShippingHasSessionRecords
dna.xml.ShippingHasSession[] getShippingHasSessionRecords(boolean refresh) -
getShippingHasSessionRecords
-