Package org.gcube.portal.databook.shared
Class Notification
- java.lang.Object
-
- org.gcube.portal.databook.shared.Notification
-
- All Implemented Interfaces:
Serializable
public class Notification extends Object implements Serializable
- Author:
- Massimiliano Assante, ISTI-CNR
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Notification()default constructorNotification(String key, NotificationType type, String userid, String subjectid, Date time, String uri, String description, boolean read, String senderid, String senderFullName, String senderThumbnail)Notification(String key, NotificationType type, String userid, String subjectid, Date time, String uri, String description, boolean read, String senderid, String senderFullName, String senderThumbnail, String commentKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCommentKey()StringgetDescription()StringgetKey()StringgetSenderFullName()StringgetSenderid()StringgetSenderThumbnail()StringgetSubjectid()DategetTime()NotificationTypegetType()StringgetUri()StringgetUserid()booleanisRead()voidsetCommentKey(String commentKey)voidsetDescription(String description)voidsetKey(String key)voidsetRead(boolean read)voidsetSenderFullName(String senderFullName)voidsetSenderid(String senderid)voidsetSenderThumbnail(String senderThumbnail)voidsetSubjectid(String subjectid)voidsetTime(Date time)voidsetType(NotificationType type)voidsetUri(String uri)voidsetUserid(String userid)StringtoString()
-
-
-
Constructor Detail
-
Notification
public Notification()
default constructor
-
Notification
public Notification(String key, NotificationType type, String userid, String subjectid, Date time, String uri, String description, boolean read, String senderid, String senderFullName, String senderThumbnail)
- Parameters:
key-type-userid-subjectid- the subject id of this notification, if is a like on a feed then is the feedid, it is a message then is the messageid and so ontime-uri-description-read-senderid-senderFullName-senderThumbnail-
-
Notification
public Notification(String key, NotificationType type, String userid, String subjectid, Date time, String uri, String description, boolean read, String senderid, String senderFullName, String senderThumbnail, String commentKey)
- Parameters:
key-type-userid-subjectid- the subject id of this notification, if is a like on a feed then is the feedid, it is a message then is the messageid and so ontime-uri-description-read-senderid-senderFullName-senderThumbnail-commentKey- when a mail notification must be sent, stop the embedded discussion at this comment
-
-
Method Detail
-
getKey
public String getKey()
- Returns:
- .
-
setKey
public void setKey(String key)
-
getType
public NotificationType getType()
-
setType
public void setType(NotificationType type)
-
getUserid
public String getUserid()
-
setUserid
public void setUserid(String userid)
-
getTime
public Date getTime()
-
setTime
public void setTime(Date time)
-
getUri
public String getUri()
-
setUri
public void setUri(String uri)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
isRead
public boolean isRead()
-
setRead
public void setRead(boolean read)
-
getSenderid
public String getSenderid()
-
setSenderid
public void setSenderid(String senderid)
-
getSenderFullName
public String getSenderFullName()
-
setSenderFullName
public void setSenderFullName(String senderFullName)
-
getSenderThumbnail
public String getSenderThumbnail()
-
setSenderThumbnail
public void setSenderThumbnail(String senderThumbnail)
-
getSubjectid
public String getSubjectid()
-
setSubjectid
public void setSubjectid(String subjectid)
-
getCommentKey
public String getCommentKey()
-
setCommentKey
public void setCommentKey(String commentKey)
-
-