Class NotificationReceiver

java.lang.Object
mc.core.model.system.NotificationReceiver
All Implemented Interfaces:
Serializable, IBaseEntity, ICoreEntity

@Entity public class NotificationReceiver extends Object implements IBaseEntity
link from notification to receiver. this entity has information, if receiver is direct receiver (group or user), or indirect receiver through group membership (currently user only, as there are no groups in group at the moment). has a marker to see if user already

if user deletes notification, his/her notification receiver link is removed. notification itself is deleted, if there are no user notification receiver left (direct or indirect).

See Also:
  • Constructor Details

    • NotificationReceiver

      public NotificationReceiver()
    • NotificationReceiver

      public NotificationReceiver(Notification notification, Principal receiver, boolean isDirectReceiver)
  • Method Details

    • getId

      public long getId()
      Specified by:
      getId in interface IBaseEntity
    • setId

      public void setId(long id)
      Specified by:
      setId in interface IBaseEntity
    • getNotification

      public Notification getNotification()
    • setNotification

      public void setNotification(Notification notification)
    • getReceiver

      public Principal getReceiver()
    • setReceiver

      public void setReceiver(Principal receiver)
    • isNotificationRead

      public boolean isNotificationRead()
    • setNotificationRead

      public void setNotificationRead(boolean isRead)
    • isUserGroup

      public boolean isUserGroup()
    • setUserGroup

      public void setUserGroup(boolean isGroup)
    • isDirectReceiver

      public boolean isDirectReceiver()
    • setDirectReceiver

      public void setDirectReceiver(boolean isDirectReceiver)
    • getDateMailed

      public Calendar getDateMailed()
    • setDateMailed

      public void setDateMailed(Calendar dateMailed)
    • equals

      public boolean equals(Object another)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object