Class Project
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.model.IridaRepresentationModel
-
- ca.corefacility.bioinformatics.irida.model.project.Project
-
- All Implemented Interfaces:
IridaThing
,MutableIridaThing
,RemoteSynchronizable
,Timestamped<java.lang.Long>
,java.lang.Comparable<Project>
@Entity public class Project extends IridaRepresentationModel implements MutableIridaThing, java.lang.Comparable<Project>, RemoteSynchronizable
A project object.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Project p)
boolean
equals(java.lang.Object other)
AnalysisSubmission.Priority
getAnalysisPriority()
java.util.Date
getCreatedDate()
Get the created date of the objectjava.lang.Long
getGenomeSize()
java.lang.Long
getId()
Get the numerical identifier for this objectjava.lang.String
getLabel()
Get a human readable label for this object.java.lang.Integer
getMaximumCoverage()
java.lang.Integer
getMinimumCoverage()
java.util.Date
getModifiedDate()
Get the date that this object was last modifiedjava.lang.String
getName()
java.lang.String
getOrganism()
java.lang.String
getProjectDescription()
java.lang.Integer
getRemoteProjectHash()
RemoteStatus
getRemoteStatus()
Get theRemoteStatus
for this object if it was read from a remote sourcejava.lang.String
getRemoteURL()
ProjectSyncFrequency
getSyncFrequency()
int
hashCode()
void
setAnalysisPriority(AnalysisSubmission.Priority analysisPriority)
void
setGenomeSize(java.lang.Long genomeSize)
void
setId(java.lang.Long id)
Set the numerical identifier for this objectvoid
setMaximumCoverage(java.lang.Integer maximumCoverage)
void
setMinimumCoverage(java.lang.Integer minimumCoverage)
void
setModifiedDate(java.util.Date modifiedDate)
Set the modification time of this objectvoid
setName(java.lang.String name)
void
setOrganism(java.lang.String organism)
void
setProjectDescription(java.lang.String projectDescription)
void
setRemoteProjectHash(java.lang.Integer remoteProjectHash)
void
setRemoteStatus(RemoteStatus remoteStatus)
Set theRemoteStatus
for this object if it was read from a remote sourcevoid
setRemoteURL(java.lang.String remoteURL)
void
setSyncFrequency(ProjectSyncFrequency syncFrequency)
-
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
-
Methods inherited from interface ca.corefacility.bioinformatics.irida.model.remote.RemoteSynchronizable
isRemote
-
-
-
-
Constructor Detail
-
Project
public Project()
-
Project
public Project(java.lang.String name)
Create a newProject
with the given name- Parameters:
name
- The name of the project
-
-
Method Detail
-
getId
public java.lang.Long getId()
Description copied from interface:IridaThing
Get the numerical identifier for this object- Specified by:
getId
in interfaceIridaThing
- Specified by:
getId
in interfaceTimestamped<java.lang.Long>
- Returns:
- the numerical identifier for the object
-
setId
public void setId(java.lang.Long id)
Description copied from interface:MutableIridaThing
Set the numerical identifier for this object- Specified by:
setId
in interfaceMutableIridaThing
- Parameters:
id
- The ID to set
-
equals
public boolean equals(java.lang.Object other)
Description copied from class:IridaRepresentationModel
- Overrides:
equals
in classIridaRepresentationModel
-
hashCode
public int hashCode()
Description copied from class:IridaRepresentationModel
- Overrides:
hashCode
in classIridaRepresentationModel
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
compareTo
public int compareTo(Project p)
- Specified by:
compareTo
in interfacejava.lang.Comparable<Project>
-
getLabel
public java.lang.String getLabel()
Description copied from interface:IridaThing
Get a human readable label for this object.- Specified by:
getLabel
in interfaceIridaThing
- Returns:
- a human-readable label for the object.
-
getCreatedDate
public java.util.Date getCreatedDate()
Description copied from interface:Timestamped
Get the created date of the object- Specified by:
getCreatedDate
in interfaceTimestamped<java.lang.Long>
- Returns:
- A
Date
object of the created date
-
getModifiedDate
public java.util.Date getModifiedDate()
Description copied from interface:MutableIridaThing
Get the date that this object was last modified- Specified by:
getModifiedDate
in interfaceMutableIridaThing
- Returns:
Date
object of the modified date
-
setModifiedDate
public void setModifiedDate(java.util.Date modifiedDate)
Description copied from interface:MutableIridaThing
Set the modification time of this object- Specified by:
setModifiedDate
in interfaceMutableIridaThing
- Parameters:
modifiedDate
- The date where this object was modified
-
getProjectDescription
public java.lang.String getProjectDescription()
-
setProjectDescription
public void setProjectDescription(java.lang.String projectDescription)
-
getRemoteURL
public java.lang.String getRemoteURL()
-
setRemoteURL
public void setRemoteURL(java.lang.String remoteURL)
-
getOrganism
public java.lang.String getOrganism()
-
setOrganism
public void setOrganism(java.lang.String organism)
-
getRemoteStatus
public RemoteStatus getRemoteStatus()
Description copied from class:IridaRepresentationModel
Get theRemoteStatus
for this object if it was read from a remote source- Specified by:
getRemoteStatus
in interfaceRemoteSynchronizable
- 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- Specified by:
setRemoteStatus
in interfaceRemoteSynchronizable
- Overrides:
setRemoteStatus
in classIridaRepresentationModel
- Parameters:
remoteStatus
- theRemoteStatus
object
-
getRemoteProjectHash
public java.lang.Integer getRemoteProjectHash()
-
setRemoteProjectHash
public void setRemoteProjectHash(java.lang.Integer remoteProjectHash)
-
getSyncFrequency
public ProjectSyncFrequency getSyncFrequency()
-
setSyncFrequency
public void setSyncFrequency(ProjectSyncFrequency syncFrequency)
-
getGenomeSize
public java.lang.Long getGenomeSize()
-
setGenomeSize
public void setGenomeSize(java.lang.Long genomeSize)
-
getMinimumCoverage
public java.lang.Integer getMinimumCoverage()
-
setMinimumCoverage
public void setMinimumCoverage(java.lang.Integer minimumCoverage)
-
getMaximumCoverage
public java.lang.Integer getMaximumCoverage()
-
setMaximumCoverage
public void setMaximumCoverage(java.lang.Integer maximumCoverage)
-
getAnalysisPriority
public AnalysisSubmission.Priority getAnalysisPriority()
-
setAnalysisPriority
public void setAnalysisPriority(AnalysisSubmission.Priority analysisPriority)
-
-