Class ProjectSubscription
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.model.subscription.ProjectSubscription
-
- All Implemented Interfaces:
IridaThing
,Timestamped<java.lang.Long>
@Entity public class ProjectSubscription extends java.lang.Object implements IridaThing
-
-
Constructor Summary
Constructors Constructor Description ProjectSubscription()
Construct an instance ofProjectSubscription
with no properties set.ProjectSubscription(User user, Project project, boolean emailSubscription)
Construct an instance ofProjectSubscription
with all properties set.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Date
getCreatedDate()
Get the created date of the objectjava.lang.Long
getId()
Get the numerical identifier for this objectjava.lang.String
getLabel()
Get a human readable label for this object.Project
getProject()
User
getUser()
boolean
isEmailSubscription()
void
setCreatedDate(java.util.Date createdDate)
void
setEmailSubscription(boolean emailSubscription)
void
setProject(Project project)
void
setUser(User user)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ca.corefacility.bioinformatics.irida.model.IridaThing
getIdentifier, setLabel
-
-
-
-
Constructor Detail
-
ProjectSubscription
public ProjectSubscription()
Construct an instance ofProjectSubscription
with no properties set.
-
ProjectSubscription
public ProjectSubscription(User user, Project project, boolean emailSubscription)
Construct an instance ofProjectSubscription
with all properties set.
-
-
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
-
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.
-
getUser
public User getUser()
-
setUser
public void setUser(User user)
-
getProject
public Project getProject()
-
setProject
public void setProject(Project project)
-
isEmailSubscription
public boolean isEmailSubscription()
-
setEmailSubscription
public void setEmailSubscription(boolean emailSubscription)
-
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
-
setCreatedDate
public void setCreatedDate(java.util.Date createdDate)
-
-