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>notificationsprotected StringuserId
-
Constructor Summary
Constructors Constructor Description NotificationInfoImpl(String userId, Set<String> notifications)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetUserId()The id of the user to which the notificiation needs to be sentbooleanisDesktopNotification()Whether the given user needs to receive a desktop notification.booleanisMarkAsRead()Whether the message should be marked as read after sending the notificationbooleanisMobileNotification()Whether a mobile notification is needed for the user.
-
-
-
Method Detail
-
getUserId
public String getUserId()
Description copied from interface:NotificationInfoThe id of the user to which the notificiation needs to be sent- Specified by:
getUserIdin interfaceNotificationInfo- Returns:
- the id of the user
-
isDesktopNotification
public boolean isDesktopNotification()
Description copied from interface:NotificationInfoWhether 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:
isDesktopNotificationin interfaceNotificationInfo- Returns:
- whether a desktop notifications needs to be displayed
-
isMobileNotification
public boolean isMobileNotification()
Description copied from interface:NotificationInfoWhether a mobile notification is needed for the user.- Specified by:
isMobileNotificationin interfaceNotificationInfo- Returns:
- whether a mobile notification needs to be send
-
isMarkAsRead
public boolean isMarkAsRead()
Description copied from interface:NotificationInfoWhether the message should be marked as read after sending the notification- Specified by:
isMarkAsReadin interfaceNotificationInfo- Returns:
- whether the message should be marked as read
-
-