java.lang.Object
com.genologics.ri.file.ClarityFile
- All Implemented Interfaces:
LimsEntity<ClarityFile>
,LimsEntityLink<ClarityFile>
,LimsEntityLinkable<ClarityFile>
,LimsLink<ClarityFile>
,Linkable<ClarityFile>
,Locatable
,Serializable
public class ClarityFile
extends Object
implements LimsEntity<ClarityFile>, LimsEntityLink<ClarityFile>, Serializable
The file element contains information about a file in the system.
These are rather strange as the link to a file is just a file object with
only the URI set. So they are both entities and links.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionClarityFile
(ClarityFile original) ClarityFile
(URI uri) ClarityFile
(URI uri, String limsid) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Helper method to clear the detail fields (attachedTo, contentLocation, originalLocation and published).This element contains a URI that identifies and links to further information about the resource that the file is attached to, such as a project, sample, process, or file-based artifact.This element contains a URI that identifies and links to the network location of the file, which can be used to retrieve the file and process its contents.Get the class of the true, full LIMS entity this object links to.Get the LIMS id for this object.This element provides the original name and location of the file before it was imported into the system.This element provides the original name of the file before it was imported into the system.getUri()
Get the URI of this object.boolean
This element specifies whether the file is displayed in LabLink.void
setAttachedTo
(Linkable<?> link) void
setContentLocation
(URI contentLocation) void
Set the LIMS id for this object.void
setOriginalLocation
(String originalLocation) void
setOriginalName
(String originalName) void
setPublished
(Boolean published) void
Set the URI of this object.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.genologics.ri.LimsEntityLinkable
getLimsId, setLimsId
-
Field Details
-
attachedTo
-
contentLocation
-
originalLocation
-
originalName
- Since:
- 2.26
-
published
-
limsid
-
uri
-
-
Constructor Details
-
ClarityFile
public ClarityFile() -
ClarityFile
-
ClarityFile
-
ClarityFile
-
-
Method Details
-
getAttachedTo
This element contains a URI that identifies and links to further information about the resource that the file is attached to, such as a project, sample, process, or file-based artifact.- Returns:
- The URI of the entity the file is attached to.
-
setAttachedTo
-
getContentLocation
This element contains a URI that identifies and links to the network location of the file, which can be used to retrieve the file and process its contents.- Returns:
- The file's location.
-
setContentLocation
-
getOriginalLocation
This element provides the original name and location of the file before it was imported into the system. Note: If the file was uploaded from the Clarity web interface, the original-location element will not contain the full file path due to browser security limitations. Only the original file name will be available.- Returns:
- The original file location.
-
setOriginalLocation
-
getOriginalName
This element provides the original name of the file before it was imported into the system. This is calculated from the original-location.- Returns:
- The original file name.
- Since:
- 2.26
-
setOriginalName
-
isPublished
public boolean isPublished()This element specifies whether the file is displayed in LabLink.- Returns:
- true to be visible in Lablink, false to be invisible.
-
setPublished
-
getLimsid
Description copied from interface:LimsEntityLinkable
Get the LIMS id for this object.- Specified by:
getLimsid
in interfaceLimsEntityLinkable<ClarityFile>
- Returns:
- The LIMS id.
-
setLimsid
Description copied from interface:LimsEntityLinkable
Set the LIMS id for this object.- Specified by:
setLimsid
in interfaceLimsEntityLinkable<ClarityFile>
- Parameters:
limsid
- The new LIMS id.
-
getUri
Description copied from interface:Locatable
Get the URI of this object.- Specified by:
getUri
in interfaceLimsLink<ClarityFile>
- Specified by:
getUri
in interfaceLocatable
- Returns:
- The URI.
-
setUri
Description copied from interface:Locatable
Set the URI of this object. -
clearDetailFields
public void clearDetailFields()Helper method to clear the detail fields (attachedTo, contentLocation, originalLocation and published). This may be necessary if a new file is created with these values set and that object then set on, say, an artifact that needs to be updated. Internally, the link will have been set on the server. -
getEntityClass
Description copied from interface:LimsLink
Get the class of the true, full LIMS entity this object links to.- Specified by:
getEntityClass
in interfaceLimsLink<ClarityFile>
- Returns:
- The real object class.
-
toString
-