Class NotificationInfoImpl
- java.lang.Object
-
- com.flowable.engage.engine.impl.notification.NotificationInfoImpl
-
- All Implemented Interfaces:
NotificationInfo
public class NotificationInfoImpl extends Object implements NotificationInfo
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<String>
notifications
protected String
userId
-
Constructor Summary
Constructors Constructor Description NotificationInfoImpl(String userId, Set<String> notifications)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
getUserId
public 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
-
-