Class AnnouncementUserJoin
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.model.announcements.AnnouncementUserJoin
-
- All Implemented Interfaces:
IridaThing
,Join<Announcement,User>
,Timestamped<java.lang.Long>
,java.lang.Comparable<AnnouncementUserJoin>
@Entity public class AnnouncementUserJoin extends java.lang.Object implements Join<Announcement,User>, java.lang.Comparable<AnnouncementUserJoin>
AnnouncementUserJoin
object This is created whenever aUser
has confirmed that they have read anAnnouncement
-
-
Constructor Summary
Constructors Constructor Description AnnouncementUserJoin()
AnnouncementUserJoin(Announcement announcement, User user)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(AnnouncementUserJoin other)
java.util.Date
getCreatedDate()
Get the created date of the objectjava.lang.Long
getId()
Get the numerical identifier for this objectUser
getObject()
Get the owned object in the relationship.Announcement
getSubject()
Get the owning object in the relationship.java.util.Date
getTimestamp()
Get the timestamp for this object-
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
-
AnnouncementUserJoin
public AnnouncementUserJoin()
-
AnnouncementUserJoin
public AnnouncementUserJoin(Announcement announcement, User user)
-
-
Method Detail
-
compareTo
public int compareTo(AnnouncementUserJoin other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<AnnouncementUserJoin>
-
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
-
getTimestamp
public java.util.Date getTimestamp()
Description copied from interface:Join
Get the timestamp for this object- Specified by:
getTimestamp
in interfaceJoin<Announcement,User>
- Returns:
- A
Date
object of the timestamp
-
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
-
getSubject
public Announcement getSubject()
Description copied from interface:Join
Get the owning object in the relationship.- Specified by:
getSubject
in interfaceJoin<Announcement,User>
- Returns:
- the owning object of the relationship.
-
-