java.lang.Object
com.genologics.ri.artifact.Artifact
- All Implemented Interfaces:
LimsEntity<Artifact>,LimsEntityLinkable<Artifact>,Linkable<Artifact>,Locatable,UDFHolder,Serializable
The detailed representation of an Artifact.
An Artifact represents the inputs to or outputs from a process. An Artifact is classified by its type (Analyte, ResultFile, etc).
Artifacts do not support HTTP POST requests.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ArtifactGroupLink>The list of artifact groups this artifact belongs to.protected ControlTypeLinkThe control type if this artifact is a control sample.protected DemuxLinkThe demultiplexing information for this artifact if it is a pool.The list of user-defined fields for this artifact.protected ClarityFileThe file associated with this artifact, if any.protected StringThe LIMS id of the artifact.protected LocationThe location of the artifact.protected StringThe name of the artifact.protected OutputTypeThe output type of the artifact.protected ParentProcessLinkThe parent process that produced this artifact.protected QCFlagThe quality control flag for this artifact.protected List<ReagentLabel>The list of reagent labels applied to this artifact.protected List<SampleLink>The list of samples associated with this artifact.protected StringThe type of the artifact.protected URIThe URI of the artifact.protected List<WorkflowStage>The workflow stages this artifact is associated with.protected BooleanFlag indicating if this artifact is in a working state. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds an artifact group to this artifact.addReagentLabel(ReagentLabel label) Adds a reagent label to this artifact.addReagentLabel(String labelName) Adds a reagent label to this artifact.addSample(LimsEntityLinkable<Sample> linkable) Adds a sample to this artifact.Adds a sample to this artifact.addWorkflowStage(WorkflowStage stage) Adds a workflow stage to this artifact.Gets the list of artifact groups this artifact belongs to.Gets the control type if this artifact is a control sample.getDemux()Gets the demultiplexing information for this artifact.getFile()File provides a URI linking to the detailed representation of the File associated with the Artifact.Gets the LIMS id of this artifact.getLink()Get a concrete link object to thisLimsEntityLinkableentity.Gets the location of the artifact.getName()Gets the name of the artifact.Gets the output type of the artifact.Gets the parent process that produced this artifact.Gets the quality control flag for this artifact.Gets the list of reagent labels applied to this artifact.Gets the list of samples associated with this artifact.getType()Gets the type of the artifact.getUri()Gets the URI of this artifact.Get a list of user defined fields held by the entity.Gets the workflow stages this artifact is associated with.Checks if this artifact is in a working state.voidsetArtifactGroups(Collection<? extends Linkable<ArtifactGroup>> links) Sets the artifact groups this artifact belongs to.voidsetControlType(Linkable<ControlType> link) Sets the control type for this artifact.voidSets the demultiplexing information for this artifact.voidsetFile(ClarityFile value) Sets the file associated with this artifact.voidSets the LIMS id of this artifact.voidsetLocation(Location value) Sets the location of the artifact.voidSets the name of the artifact.voidsetOutputType(OutputType value) Sets the output type of the artifact.Sets the parent process that produced this artifact.voidSets the quality control flag for this artifact.voidsetSamples(Collection<? extends LimsEntityLinkable<Sample>> links) Sets the list of samples associated with this artifact.voidSets the type of the artifact.voidSets the URI of this artifact.voidsetWorkflowStages(Collection<WorkflowStage> workflowStages) Sets the workflow stages this artifact is associated with.voidsetWorkingFlag(Boolean value) Sets the working flag for this artifact.toString()Returns a string representation of this artifact.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.genologics.ri.LimsEntityLinkable
getLimsId, setLimsIdMethods 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 artifact. -
type
The type of the artifact. -
outputType
The output type of the artifact. -
parentProcess
The parent process that produced this artifact. -
qcFlag
The quality control flag for this artifact. -
location
The location of the artifact. -
workingFlag
Flag indicating if this artifact is in a working state. -
samples
The list of samples associated with this artifact. -
reagentLabels
The list of reagent labels applied to this artifact. -
controlType
The control type if this artifact is a control sample. -
fields
The list of user-defined fields for this artifact. -
file
The file associated with this artifact, if any. -
artifactGroups
The list of artifact groups this artifact belongs to. -
workflowStages
The workflow stages this artifact is associated with.- Since:
- 2.20
-
demux
The demultiplexing information for this artifact if it is a pool.- Since:
- 2.26
-
limsid
The LIMS id of the artifact. -
uri
The URI of the artifact.
-
-
Constructor Details
-
Artifact
public Artifact()Default constructor. -
Artifact
Constructor with a URI.- Parameters:
uri- The artifact URI.
-
Artifact
Constructor with URI and id.- Parameters:
uri- The artifact URI.limsid- The artifact LIMS id.
-
-
Method Details
-
getName
Gets the name of the artifact.- Returns:
- The artifact name.
-
setName
Sets the name of the artifact.- Parameters:
value- The artifact name.
-
getType
Gets the type of the artifact.- Returns:
- The artifact type.
-
setType
Sets the type of the artifact.- Parameters:
value- The artifact type.
-
getOutputType
Gets the output type of the artifact.- Returns:
- The output type.
-
setOutputType
Sets the output type of the artifact.- Parameters:
value- The output type.
-
getParentProcess
Gets the parent process that produced this artifact.- Returns:
- The parent process link.
-
setParentProcess
Sets the parent process that produced this artifact.- Parameters:
link- The parent process link.- Returns:
- The created parent process link.
-
getQCFlag
Gets the quality control flag for this artifact.- Returns:
- The QC flag.
-
setQCFlag
Sets the quality control flag for this artifact.- Parameters:
value- The QC flag.
-
getLocation
Gets the location of the artifact.- Returns:
- The location.
-
setLocation
Sets the location of the artifact.- Parameters:
value- The location.
-
isWorkingFlag
Checks if this artifact is in a working state.- Returns:
- The working flag.
-
setWorkingFlag
Sets the working flag for this artifact.- Parameters:
value- The working flag.
-
getSamples
Gets the list of samples associated with this artifact.- Returns:
- The list of sample links.
-
setSamples
Sets the list of samples associated with this artifact.- Parameters:
links- The collection of sample links.
-
addSample
Adds a sample to this artifact.- Parameters:
linkable- The linkable sample to add.- Returns:
- The created sample link.
-
addSample
Adds a sample to this artifact.- Parameters:
linkable- The LIMS entity linkable sample to add.- Returns:
- The created sample link.
-
getReagentLabels
Gets the list of reagent labels applied to this artifact.- Returns:
- The list of reagent labels.
-
addReagentLabel
Adds a reagent label to this artifact.- Parameters:
label- The reagent label to add.- Returns:
- The added reagent label.
-
addReagentLabel
Adds a reagent label to this artifact.- Parameters:
labelName- The name of the reagent label to add.- Returns:
- The created reagent label.
-
getControlType
Gets the control type if this artifact is a control sample.- Returns:
- The control type link.
-
setControlType
Sets the control type for this artifact.- Parameters:
link- The control type link.
-
getUserDefinedFields
Description copied from interface:UDFHolderGet a list of user defined fields held by the entity.- Specified by:
getUserDefinedFieldsin interfaceUDFHolder- Returns:
- A list of UDF objects. This should never return null.
-
getFile
File provides a URI linking to the detailed representation of the File associated with the Artifact.- Returns:
- The file link, if present.
-
setFile
Sets the file associated with this artifact.- Parameters:
value- The file.
-
getArtifactGroups
Gets the list of artifact groups this artifact belongs to.- Returns:
- The list of artifact group links.
-
setArtifactGroups
Sets the artifact groups this artifact belongs to.- Parameters:
links- The collection of artifact group links.
-
addArtifactGroup
Adds an artifact group to this artifact.- Parameters:
link- The artifact group link to add.- Returns:
- The created artifact group link.
-
getWorkflowStages
Gets the workflow stages this artifact is associated with.- Returns:
- The list of workflow stages.
-
setWorkflowStages
Sets the workflow stages this artifact is associated with.- Parameters:
workflowStages- The collection of workflow stages.
-
addWorkflowStage
Adds a workflow stage to this artifact.- Parameters:
stage- The workflow stage to add.- Returns:
- The added workflow stage.
-
getDemux
Gets the demultiplexing information for this artifact.- Returns:
- The demux link.
-
setDemux
Sets the demultiplexing information for this artifact.- Parameters:
demux- The demux link.
-
getLimsid
Gets the LIMS id of this artifact.- Specified by:
getLimsidin interfaceLimsEntityLinkable<Artifact>- Returns:
- The LIMS id.
-
setLimsid
Sets the LIMS id of this artifact.- Specified by:
setLimsidin interfaceLimsEntityLinkable<Artifact>- Parameters:
value- The LIMS id.
-
getUri
Gets the URI of this artifact. -
setUri
Sets the URI of this artifact. -
toString
Returns a string representation of this artifact. -
getLink
Get a concrete link object to thisLimsEntityLinkableentity. This definition simply narrows the type of links returned by classes that implement this interface, as they should all have correspondingLimsEntityLinklink classes available.
-