Class ArtifactLink

All Implemented Interfaces:
LimsEntityLink<Artifact>, LimsEntityLinkable<Artifact>, LimsLink<Artifact>, Linkable<Artifact>, Locatable, Serializable

public class ArtifactLink extends LimsEntityLinkBase<Artifact>
Artifact-Link provides a URI linking to the detailed representation of an artifact in a queue.
Since:
2.19
See Also:
  • Field Details

    • queueTime

      protected Date queueTime
      The time when the artifact was queued.
    • location

      protected Location location
      The location of the artifact.
    • uri

      protected URI uri
      The URI of the artifact.
    • limsid

      protected String limsid
      The LIMS id of the artifact.
  • Constructor Details

    • ArtifactLink

      public ArtifactLink()
      Default constructor.
    • ArtifactLink

      public ArtifactLink(URI uri)
      Constructor with URI.
      Parameters:
      uri - The URI of the artifact.
    • ArtifactLink

      public ArtifactLink(URI uri, String limsid)
      Constructor with URI and LIMS id.
      Parameters:
      uri - The URI of the artifact.
      limsid - The LIMS id of the artifact.
    • ArtifactLink

      public ArtifactLink(Linkable<Artifact> link)
      Constructor from a Linkable.
      Parameters:
      link - The linkable artifact.
    • ArtifactLink

      public ArtifactLink(LimsEntityLinkable<Artifact> link)
      Constructor from a LimsEntityLinkable.
      Parameters:
      link - The LIMS entity linkable artifact.
    • ArtifactLink

      public ArtifactLink(Artifact artifact)
      Constructor from an Artifact.
      Parameters:
      artifact - The artifact.
  • Method Details

    • getQueueTime

      public Date getQueueTime()
      Gets the time when the artifact was queued.
      Returns:
      The queue time.
    • setQueueTime

      public void setQueueTime(Date queueTime)
      Sets the time when the artifact was queued.
      Parameters:
      queueTime - The queue time.
    • getLocation

      public Location getLocation()
      Gets the location of the artifact.
      Returns:
      The artifact location.
    • setLocation

      public void setLocation(Location location)
      Sets the location of the artifact.
      Parameters:
      location - The artifact location.
    • getUri

      public URI getUri()
      Get the URI of the object we are linking to.
      Returns:
      The URI.
    • setUri

      public void setUri(URI uri)
      Set the URI of this object.
      Parameters:
      uri - The new URI.
    • getLimsid

      public String getLimsid()
      Get the LIMS id for this object.
      Returns:
      The LIMS id.
    • setLimsid

      public void setLimsid(String limsid)
      Sets the LIMS id of the artifact.
      Parameters:
      limsid - The LIMS id.
    • getEntityClass

      public Class<Artifact> getEntityClass()
      Get the class of the true, full LIMS entity this object links to.
      Returns:
      The real object class.