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 ofProjectSubscriptionwith no properties set.ProjectSubscription(User user, Project project, boolean emailSubscription)Construct an instance ofProjectSubscriptionwith all properties set.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.DategetCreatedDate()Get the created date of the objectjava.lang.LonggetId()Get the numerical identifier for this objectjava.lang.StringgetLabel()Get a human readable label for this object.ProjectgetProject()UsergetUser()booleanisEmailSubscription()voidsetCreatedDate(java.util.Date createdDate)voidsetEmailSubscription(boolean emailSubscription)voidsetProject(Project project)voidsetUser(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 ofProjectSubscriptionwith no properties set.
-
ProjectSubscription
public ProjectSubscription(User user, Project project, boolean emailSubscription)
Construct an instance ofProjectSubscriptionwith all properties set.
-
-
Method Detail
-
getId
public java.lang.Long getId()
Description copied from interface:IridaThingGet the numerical identifier for this object- Specified by:
getIdin interfaceIridaThing- Specified by:
getIdin interfaceTimestamped<java.lang.Long>- Returns:
- the numerical identifier for the object
-
getLabel
public java.lang.String getLabel()
Description copied from interface:IridaThingGet a human readable label for this object.- Specified by:
getLabelin 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:TimestampedGet the created date of the object- Specified by:
getCreatedDatein interfaceTimestamped<java.lang.Long>- Returns:
- A
Dateobject of the created date
-
setCreatedDate
public void setCreatedDate(java.util.Date createdDate)
-
-