Class Instrument

java.lang.Object
com.genologics.ri.instrument.Instrument
All Implemented Interfaces:
LimsEntity<Instrument>, LimsEntityLinkable<Instrument>, Linkable<Instrument>, Locatable, Serializable

public class Instrument extends Object implements LimsEntity<Instrument>, Serializable
The detailed representation of an instrument.

Since API version 2.25 this object has received an explicit limsid attribute from the server. Unfortunately this is broken in that the last part of the URI path is not the same as the LIMS id. The id on the path is just a number corresponding to the database id whereas the LIMS id has the prefix "55-", corresponding to the LUID.

To make this work without special cases elsewhere this object will work as it did for API 2.24 and before, and return the LIMS id as just the number from getLimsid(). This keeps things consistent.

This issue has been reported to Illumina but they are very reluctant to fix it (SFC# 02921030).

See Also:
  • Field Details

    • name

      protected String name
    • type

      protected String type
    • serialNumber

      protected String serialNumber
      Since:
      2.25
    • expiryDate

      protected String expiryDate
      Since:
      2.25
    • archived

      protected Boolean archived
      Since:
      2.25
    • uri

      protected URI uri
    • limsid

      protected String limsid
      Since:
      2.25
  • Constructor Details

    • Instrument

      public Instrument()
    • Instrument

      public Instrument(String name)
    • Instrument

      public Instrument(String name, String type)
  • Method Details

    • getUri

      public URI getUri()
      Description copied from interface: Locatable
      Get the URI of this object.
      Specified by:
      getUri in interface Locatable
      Returns:
      The URI.
    • setUri

      public void setUri(URI uri)
      Description copied from interface: Locatable
      Set the URI of this object.
      Specified by:
      setUri in interface Locatable
      Parameters:
      uri - The new URI.
    • getLimsid

      public String getLimsid()
      Get the LIMS id of this instrument. Due to the error described in the class description, this doesn't return the limsid value but takes the id from the path of the URI.
      Specified by:
      getLimsid in interface LimsEntityLinkable<Instrument>
      Returns:
      The LIMS id as recorded on the URI path.
    • setLimsid

      public void setLimsid(String limsid)
      Description copied from interface: LimsEntityLinkable
      Set the LIMS id for this object.
      Specified by:
      setLimsid in interface LimsEntityLinkable<Instrument>
      Parameters:
      limsid - The new LIMS id.
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getType

      public String getType()
    • setType

      public void setType(String type)
    • getSerialNumber

      public String getSerialNumber()
    • setSerialNumber

      public void setSerialNumber(String serialNumber)
    • getExpiryDate

      public String getExpiryDate()
    • setExpiryDate

      public void setExpiryDate(String expiryDate)
    • getArchived

      public Boolean getArchived()
    • setArchived

      public void setArchived(Boolean archived)