Package web.sportflow.notification
Class Notification
java.lang.Object
web.sportflow.notification.Notification
-
Constructor Summary
ConstructorsConstructorDescriptionNotification(User recipient, User actor, NotificationType type, String message, String targetUrl) -
Method Summary
Modifier and TypeMethodDescriptiongetActor()getId()getType()booleanisRead()voidvoidvoidsetCreatedAt(LocalDateTime createdAt) voidvoidsetMessage(String message) voidsetRead(boolean read) voidsetRecipient(User recipient) voidsetTargetUrl(String targetUrl) voidsetType(NotificationType type)
-
Constructor Details
-
Notification
public Notification() -
Notification
public Notification(User recipient, User actor, NotificationType type, String message, String targetUrl)
-
-
Method Details
-
prePersist
public void prePersist() -
getId
-
getRecipient
-
getActor
-
getType
-
getMessage
-
getTargetUrl
-
isRead
public boolean isRead() -
getCreatedAt
-
setId
-
setRecipient
-
setActor
-
setType
-
setMessage
-
setTargetUrl
-
setRead
public void setRead(boolean read) -
setCreatedAt
-