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:
  • Constructor Details

    • 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 on
      time -
      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 on
      time -
      uri -
      description -
      read -
      senderid -
      senderFullName -
      senderThumbnail -
      commentKey - when a mail notification must be sent, stop the embedded discussion at this comment
  • Method Details

    • 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)
    • toString

      public String toString()
      Overrides:
      toString in class Object