Class NotificationInfoImpl
java.lang.Object
com.flowable.engage.engine.impl.notification.NotificationInfoImpl
- All Implemented Interfaces:
NotificationInfo
public class NotificationInfoImpl extends java.lang.Object implements NotificationInfo
- Author:
- Filip Hrisafov
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<java.lang.String>
notifications
protected java.lang.String
userId
-
Constructor Summary
Constructors Constructor Description NotificationInfoImpl(java.lang.String userId, java.util.Set<java.lang.String> notifications)
-
Method Summary
Modifier and Type Method Description java.lang.String
getUserId()
The id of the user to which the notificiation needs to be sentboolean
isDesktopNotification()
Whether the given user needs to receive a desktop notification.boolean
isMarkAsRead()
Whether the message should be marked as read after sending the notificationboolean
isMobileNotification()
Whether a mobile notification is needed for the user.
-
Field Details
-
userId
protected final java.lang.String userId -
notifications
protected final java.util.Set<java.lang.String> notifications
-
-
Constructor Details
-
NotificationInfoImpl
public NotificationInfoImpl(java.lang.String userId, java.util.Set<java.lang.String> notifications)
-
-
Method Details
-
getUserId
public java.lang.String getUserId()Description copied from interface:NotificationInfo
The id of the user to which the notificiation needs to be sent- Specified by:
getUserId
in interfaceNotificationInfo
- Returns:
- the id of the user
-
isDesktopNotification
public boolean isDesktopNotification()Description copied from interface:NotificationInfo
Whether the given user needs to receive a desktop notification. This does not affect the real time messaging. If a user is connected a notification will always be send to him / her.- Specified by:
isDesktopNotification
in interfaceNotificationInfo
- Returns:
- whether a desktop notifications needs to be displayed
-
isMobileNotification
public boolean isMobileNotification()Description copied from interface:NotificationInfo
Whether a mobile notification is needed for the user.- Specified by:
isMobileNotification
in interfaceNotificationInfo
- Returns:
- whether a mobile notification needs to be send
-
isMarkAsRead
public boolean isMarkAsRead()Description copied from interface:NotificationInfo
Whether the message should be marked as read after sending the notification- Specified by:
isMarkAsRead
in interfaceNotificationInfo
- Returns:
- whether the message should be marked as read
-