Package mc.core.model.system
Class NotificationReceiver
java.lang.Object
mc.core.model.system.NotificationReceiver
- All Implemented Interfaces:
Serializable,IBaseEntity,ICoreEntity
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:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionNotificationReceiver(Notification notification, Principal receiver, boolean isDirectReceiver) -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonggetId()inthashCode()booleanbooleanbooleanvoidsetDateMailed(Calendar dateMailed) voidsetDirectReceiver(boolean isDirectReceiver) voidsetId(long id) voidsetNotification(Notification notification) voidsetNotificationRead(boolean isRead) voidsetReceiver(Principal receiver) voidsetUserGroup(boolean isGroup) toString()
-
Constructor Details
-
NotificationReceiver
public NotificationReceiver() -
NotificationReceiver
public NotificationReceiver(Notification notification, Principal receiver, boolean isDirectReceiver)
-
-
Method Details
-
getId
public long getId()- Specified by:
getIdin interfaceIBaseEntity
-
setId
public void setId(long id) - Specified by:
setIdin interfaceIBaseEntity
-
getNotification
-
setNotification
-
getReceiver
-
setReceiver
-
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
-
setDateMailed
-
equals
-
hashCode
public int hashCode() -
toString
-