java.lang.Object
com.genologics.ri.sample.SampleBase
- All Implemented Interfaces:
UDFHolder,Serializable
- Direct Known Subclasses:
Sample,SampleCreation
The base representation of a Sample, defining common elements for both Sample and Sample creation.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ArtifactLinkThe artifact associated with this sample.protected BioSourceDeprecated.Biosource is not supported in Clarity.protected ControlTypeLinkThe control type associated with this sample.protected DateThe date the sample was completed.protected DateThe date the sample was received.protected List<ExternalId>The external identifiers for this sample.The user-defined fields for this sample.protected List<ClarityFile>The files associated with this sample.protected StringThe LIMS id of this sample.protected StringThe name of the sample.protected ProjectLinkThe project associated with this sample.protected SubmitterThe submitter of this sample.protected UDTThe user-defined type of this sample.protected URIThe URI of this sample. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor for an empty sample base.protectedSampleBase(SampleBase other) Copy constructor for a sample base. -
Method Summary
Modifier and TypeMethodDescriptionAdds a file to this sample.Gets the artifact link for this sample.Deprecated.Biosource is not supported in Clarity.Gets the control type link for this sample.Gets the date the sample was completed.Gets the date the sample was received.Gets the list of external identifiers for this sample.getFiles()Gets the list of files associated with this sample.Gets the LIMS id of this sample.getName()Gets the name of the sample.Gets the project link for this sample.Gets the submitter of this sample.getUri()Gets the URI of this sample.Gets the list of user-defined fields for this sample.Gets the user-defined type of this sample.booleanChecks if this sample is a control sample.voidsetArtifact(LimsEntityLinkable<Artifact> artifact) Sets the artifact for this sample.voidsetBioSource(BioSource bioSource) Deprecated.Biosource is not supported in Clarity.voidsetControlType(Linkable<ControlType> controlType) Sets the control type for this sample.voidsetDateCompleted(Date value) Sets the date the sample was completed.voidsetDateReceived(Date value) Sets the date the sample was received.voidSets the LIMS id for this sample.voidSets the name of the sample.voidsetProject(LimsEntityLinkable<Project> project) Sets the project for this sample.setSubmitter(Linkable<Researcher> link) Sets the submitter for this sample.voidSets the URI for this sample.setUserDefinedType(UDT value) Sets the user-defined type for this sample.setUserDefinedType(String type) Sets the user-defined type for this sample by type name.toString()Returns a string representation of this sample.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.genologics.ri.userdefined.UDFHolder
getUDF, getUDF, getUDF, getUdfs, getUDFs, getUDFValue, getUDFValue, getUDFValue, getUDFValue, setUDF
-
Field Details
-
name
The name of the sample. -
dateReceived
The date the sample was received. -
dateCompleted
The date the sample was completed. -
project
The project associated with this sample. -
controlType
The control type associated with this sample. -
submitter
The submitter of this sample. -
artifact
The artifact associated with this sample. -
bioSource
Deprecated.Biosource is not supported in Clarity.The biosource of this sample. -
type
The user-defined type of this sample. -
fields
The user-defined fields for this sample. -
externalIds
The external identifiers for this sample. -
files
The files associated with this sample. -
limsid
The LIMS id of this sample. -
uri
The URI of this sample.
-
-
Constructor Details
-
SampleBase
protected SampleBase()Constructor for an empty sample base. -
SampleBase
Copy constructor for a sample base.- Parameters:
other- The sample base to copy from.
-
-
Method Details
-
getName
Gets the name of the sample.- Returns:
- The sample name.
-
setName
Sets the name of the sample.- Parameters:
value- The sample name.
-
getDateReceived
Gets the date the sample was received.- Returns:
- The date received.
-
setDateReceived
Sets the date the sample was received.- Parameters:
value- The date received.
-
getDateCompleted
Gets the date the sample was completed.- Returns:
- The date completed.
-
setDateCompleted
Sets the date the sample was completed.- Parameters:
value- The date completed.
-
getProject
Gets the project link for this sample.- Returns:
- The project link.
-
setProject
Sets the project for this sample.- Parameters:
project- The project linkable object.
-
getControlType
Gets the control type link for this sample.- Returns:
- The control type link.
-
setControlType
Sets the control type for this sample.- Parameters:
controlType- The control type linkable object.
-
isControlSample
public boolean isControlSample()Checks if this sample is a control sample.- Returns:
- true if this sample has a control type, false otherwise.
-
getSubmitter
Gets the submitter of this sample.- Returns:
- The submitter.
-
setSubmitter
Sets the submitter for this sample.- Parameters:
link- The researcher linkable object.- Returns:
- The created submitter.
-
getArtifact
Gets the artifact link for this sample.- Returns:
- The artifact link.
-
setArtifact
Sets the artifact for this sample.- Parameters:
artifact- The artifact linkable object.
-
getBioSource
Deprecated.Biosource is not supported in Clarity.Gets the biosource of this sample.- Returns:
- The biosource.
-
setBioSource
Deprecated.Biosource is not supported in Clarity.Sets the biosource for this sample.- Parameters:
bioSource- The biosource.
-
getUserDefinedType
Gets the user-defined type of this sample.- Returns:
- The user-defined type.
-
setUserDefinedType
Sets the user-defined type for this sample.- Parameters:
value- The user-defined type.- Returns:
- The set user-defined type.
-
setUserDefinedType
Sets the user-defined type for this sample by type name.- Parameters:
type- The type name.- Returns:
- The created user-defined type.
-
getUserDefinedFields
Gets the list of user-defined fields for this sample.This accessor method returns a reference to the live list, not a snapshot. Any modification to the returned list will be reflected in the object.
- Specified by:
getUserDefinedFieldsin interfaceUDFHolder- Returns:
- The list of user-defined fields.
-
getExternalIds
Gets the list of external identifiers for this sample.This accessor method returns a reference to the live list, not a snapshot. Any modification to the returned list will be reflected in the object.
- Returns:
- The list of external identifiers.
-
getFiles
Gets the list of files associated with this sample.This accessor method returns a reference to the live list, not a snapshot. Any modification to the returned list will be reflected in the object.
- Returns:
- The list of files.
-
addFile
Adds a file to this sample.- Parameters:
f- The file to add.- Returns:
- The added file, or null if the file parameter was null.
-
getLimsid
Gets the LIMS id of this sample.- Returns:
- The LIMS id.
-
setLimsid
Sets the LIMS id for this sample.- Parameters:
value- The LIMS id.
-
getUri
Gets the URI of this sample.- Returns:
- The sample URI.
-
setUri
Sets the URI for this sample.- Parameters:
value- The sample URI.
-
toString
Returns a string representation of this sample.
-