Class UploadedAssembly
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.model.IridaRepresentationModel
-
- ca.corefacility.bioinformatics.irida.model.assembly.GenomeAssembly
-
- ca.corefacility.bioinformatics.irida.model.assembly.UploadedAssembly
-
- All Implemented Interfaces:
IridaSequenceFile
,IridaThing
,Timestamped<java.lang.Long>
,VersionedFileFields<java.lang.Long>
@Entity public class UploadedAssembly extends GenomeAssembly
AGenomeAssembly
implementation that was uploaded by a user or service
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UploadedAssembly()
UploadedAssembly(java.nio.file.Path file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.file.Path
getFile()
Gets the assembly file.java.lang.Long
getFileRevisionNumber()
Get the version of the instance.RemoteStatus
getRemoteStatus()
Get theRemoteStatus
for this object if it was read from a remote sourcevoid
incrementFileRevisionNumber()
Internally modify the file revision number to something new.void
setFile(java.nio.file.Path file)
void
setRemoteStatus(RemoteStatus remoteStatus)
Set theRemoteStatus
for this object if it was read from a remote source-
Methods inherited from class ca.corefacility.bioinformatics.irida.model.assembly.GenomeAssembly
addSampleGenomeAssemblyJoin, equals, getCreatedDate, getFileName, getFileSize, getFileSizeBytes, getId, getLabel, hashCode, setId
-
Methods inherited from class ca.corefacility.bioinformatics.irida.model.IridaRepresentationModel
add, add, getLink, getLinks, getSelfHref, hasLink, hasLinks, removeLinks, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ca.corefacility.bioinformatics.irida.model.IridaThing
getIdentifier, setLabel
-
-
-
-
Method Detail
-
getFile
public java.nio.file.Path getFile()
Description copied from class:GenomeAssembly
Gets the assembly file.- Specified by:
getFile
in interfaceIridaSequenceFile
- Specified by:
getFile
in classGenomeAssembly
- Returns:
- The assembly file.
-
setFile
public void setFile(java.nio.file.Path file)
-
getFileRevisionNumber
public java.lang.Long getFileRevisionNumber()
Description copied from interface:VersionedFileFields
Get the version of the instance.- Returns:
- the version of the instance.
-
incrementFileRevisionNumber
public void incrementFileRevisionNumber()
Description copied from interface:VersionedFileFields
Internally modify the file revision number to something new.
-
getRemoteStatus
public RemoteStatus getRemoteStatus()
Description copied from class:IridaRepresentationModel
Get theRemoteStatus
for this object if it was read from a remote source- Overrides:
getRemoteStatus
in classIridaRepresentationModel
- Returns:
- a
RemoteStatus
-
setRemoteStatus
public void setRemoteStatus(RemoteStatus remoteStatus)
Description copied from class:IridaRepresentationModel
Set theRemoteStatus
for this object if it was read from a remote source- Overrides:
setRemoteStatus
in classIridaRepresentationModel
- Parameters:
remoteStatus
- theRemoteStatus
object
-
-