Class SampleBase

java.lang.Object
com.genologics.ri.sample.SampleBase
All Implemented Interfaces:
UDFHolder, Serializable
Direct Known Subclasses:
Sample, SampleCreation

public class SampleBase extends Object implements UDFHolder, Serializable

The base representation of a Sample, defining common elements for both Sample and Sample creation.

See Also:
  • Field Details

  • Constructor Details

    • SampleBase

      protected SampleBase()
    • SampleBase

      protected SampleBase(SampleBase other)
  • Method Details

    • getName

      public String getName()
    • setName

      public void setName(String value)
    • getDateReceived

      public Date getDateReceived()
    • setDateReceived

      public void setDateReceived(Date value)
    • getDateCompleted

      public Date getDateCompleted()
    • setDateCompleted

      public void setDateCompleted(Date value)
    • getProject

      public ProjectLink getProject()
    • setProject

      public void setProject(LimsEntityLinkable<Project> project)
    • getControlType

      public ControlTypeLink getControlType()
    • setControlType

      public void setControlType(Linkable<ControlType> controlType)
    • isControlSample

      public boolean isControlSample()
    • getSubmitter

      public Submitter getSubmitter()
    • setSubmitter

      public Submitter setSubmitter(Linkable<Researcher> link)
    • getArtifact

      public ArtifactLink getArtifact()
    • setArtifact

      public void setArtifact(LimsEntityLinkable<Artifact> artifact)
    • getBioSource

      @Deprecated public BioSource getBioSource()
      Deprecated.
    • setBioSource

      @Deprecated public void setBioSource(BioSource bioSource)
      Deprecated.
    • getUserDefinedType

      public UDT getUserDefinedType()
    • setUserDefinedType

      public UDT setUserDefinedType(UDT value)
    • setUserDefinedType

      public UDT setUserDefinedType(String type)
    • getUserDefinedFields

      public List<UDF> getUserDefinedFields()
      Description copied from interface: UDFHolder
      Get a list of user defined fields held by the entity.
      Specified by:
      getUserDefinedFields in interface UDFHolder
      Returns:
      A list of UDF objects. This should never return null.
    • getExternalIds

      public List<ExternalId> getExternalIds()
    • getFiles

      public List<ClarityFile> getFiles()
    • addFile

      public ClarityFile addFile(ClarityFile f)
    • getLimsid

      public String getLimsid()
    • setLimsid

      public void setLimsid(String value)
    • getUri

      public URI getUri()
    • setUri

      public void setUri(URI value)
    • toString

      public String toString()
      Overrides:
      toString in class Object