Interface ISpyBVersion2

All Superinterfaces:
SampleModelProvider
All Known Implementing Classes:
_ISpyBVersion2

public interface ISpyBVersion2 extends SampleModelProvider
  • 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

      dna.xml.Container getContainer(Integer containerId)
    • getDewar

      dna.xml.Dewar getDewar(Integer dewarId)
    • getShipping

      dna.xml.Shipping getShipping(Integer shippingId)
    • setContainerCapacity

      void setContainerCapacity(Integer containerId, Integer capacity) throws Exception
      Throws:
      Exception
    • setContainerSampleLocation

      void setContainerSampleLocation(Integer containerId, String location) throws Exception
      updates Container cache and currentShipment. But commits neither - you only need to commit one.
      Parameters:
      containerId -
      location -
      Throws:
      Exception
    • setContainerType

      void setContainerType(Integer containerId, String conType) throws Exception
      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

      SampleSet getCurrentShipment(boolean refresh)
    • 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

      dna.xml.Dewar createDewar(String code, Integer shippingId) throws Exception
      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

      dna.xml.Protein createProtein(String acronym, String name, Integer proposalId) throws Exception
      Throws:
      Exception
    • addBLSampleRecordToShipment

      void addBLSampleRecordToShipment(SampleRecord blSampleRecord) throws Exception
      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

      void afterPropertiesSet() throws Exception
      Throws:
      Exception
    • getCurrentBeamline

      String getCurrentBeamline()
    • getCurrentProposalId

      Integer getCurrentProposalId()
    • getCurrentVisitString

      String getCurrentVisitString()
    • getCurrentSessionId

      Integer getCurrentSessionId()
    • createSampleRecord

      SampleRecord createSampleRecord(boolean doCommit)
    • getContainerCodeFromSampleRecord

      String getContainerCodeFromSampleRecord(SampleRecord element)
    • getContainerTypeIdFromSampleRecord

      String getContainerTypeIdFromSampleRecord(SampleRecord element)
    • getProteinCodeFromSampleRecord

      String getProteinCodeFromSampleRecord(SampleRecord element)
    • getProteinNameFromSampleRecord

      String getProteinNameFromSampleRecord(SampleRecord element)
    • getBLSampleLocationFromSampleRecord

      String getBLSampleLocationFromSampleRecord(SampleRecord element)
    • getContainerSampleChangerLocationFromSampleRecord

      String getContainerSampleChangerLocationFromSampleRecord(SampleRecord element)
    • getSampleCommentFromSampleRecord

      String getSampleCommentFromSampleRecord(SampleRecord element)
    • getSampleRecordFromShipmentForSampleId

      SampleRecord getSampleRecordFromShipmentForSampleId(List<SampleRecord> sampleList2, Integer blsampleId)
    • getDewarIdFromSampleRecord

      String getDewarIdFromSampleRecord(SampleRecord element)
    • isToBeManuallyLoaded

      boolean isToBeManuallyLoaded(SampleRecord sampleRecord)
    • isInSampleChanger

      boolean isInSampleChanger(SampleRecord sampleRecord)
    • getShippingHasSessionRecords

      dna.xml.ShippingHasSession[] getShippingHasSessionRecords(boolean refresh)
    • getShippingHasSessionRecords

      dna.xml.ShippingHasSession[] getShippingHasSessionRecords(boolean refresh, Integer shippingId)