Class NotificationInfoImpl
java.lang.Object
com.flowable.engage.engine.impl.notification.NotificationInfoImpl
- All Implemented Interfaces:
NotificationInfo
- Author:
- Filip Hrisafov
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe id of the user to which the notificiation needs to be sentboolean
Whether the given user needs to receive a desktop notification.boolean
Whether the message should be marked as read after sending the notificationboolean
Whether a mobile notification is needed for the user.
-
Field Details
-
userId
-
notifications
-
-
Constructor Details
-
NotificationInfoImpl
-
-
Method Details
-
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
-