java.lang.Object
com.genologics.ri.instrument.Instrument
- All Implemented Interfaces:
LimsEntity<Instrument>
,LimsEntityLinkable<Instrument>
,Linkable<Instrument>
,Locatable
,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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the LIMS id of this instrument.getName()
getType()
getUri()
Get the URI of this object.void
setArchived
(Boolean archived) void
setExpiryDate
(String expiryDate) void
Set the LIMS id for this object.void
void
setSerialNumber
(String serialNumber) void
void
Set the URI of this object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.genologics.ri.LimsEntityLinkable
getLimsId, setLimsId
-
Field Details
-
name
-
type
-
serialNumber
- Since:
- 2.25
-
expiryDate
- Since:
- 2.25
-
archived
- Since:
- 2.25
-
uri
-
limsid
- Since:
- 2.25
-
-
Constructor Details
-
Instrument
public Instrument() -
Instrument
-
Instrument
-
-
Method Details
-
getUri
Description copied from interface:Locatable
Get the URI of this object. -
setUri
Description copied from interface:Locatable
Set the URI of this object. -
getLimsid
Get the LIMS id of this instrument. Due to the error described in the class description, this doesn't return thelimsid
value but takes the id from the path of the URI.- Specified by:
getLimsid
in interfaceLimsEntityLinkable<Instrument>
- Returns:
- The LIMS id as recorded on the URI path.
-
setLimsid
Description copied from interface:LimsEntityLinkable
Set the LIMS id for this object.- Specified by:
setLimsid
in interfaceLimsEntityLinkable<Instrument>
- Parameters:
limsid
- The new LIMS id.
-
getName
-
setName
-
getType
-
setType
-
getSerialNumber
-
setSerialNumber
-
getExpiryDate
-
setExpiryDate
-
getArchived
-
setArchived
-