Class BaseNotification
java.lang.Object
com.flowable.platform.notification.api.BaseNotification
- All Implemented Interfaces:
Notification
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final Stringprotected final boolean -
Constructor Summary
ConstructorsConstructorDescriptionBaseNotification(String messageType) BaseNotification(String messageType, boolean desktopNotification, boolean mobileNotification) -
Method Summary
Modifier and TypeMethodDescriptionThe type of the message that this notification belongs to.booleantrueif a desktop notification is needed.booleantrueif a mobile notification is needed.
-
Field Details
-
messageType
-
desktopNotification
protected final boolean desktopNotification -
mobileNotification
protected final boolean mobileNotification
-
-
Constructor Details
-
BaseNotification
-
BaseNotification
public BaseNotification(String messageType, boolean desktopNotification, boolean mobileNotification)
-
-
Method Details
-
getMessageType
Description copied from interface:NotificationThe type of the message that this notification belongs to.- Specified by:
getMessageTypein interfaceNotification- Returns:
- the message type
-
isDesktopNotification
public boolean isDesktopNotification()Description copied from interface:Notificationtrueif a desktop notification is needed. This flag will only be set, if sent as a real time data object and not when loaded from the database. If received over the real time channel in a web- or desktop client and set totrue, the client should show a notification. A value ofnullorfalsemeans to not show a desk notification.- Specified by:
isDesktopNotificationin interfaceNotification- Returns:
- returns
trueif the web- or desktop client should show a notification when received
-
isMobileNotification
public boolean isMobileNotification()Description copied from interface:Notificationtrueif a mobile notification is needed. This flag will only be set, if sent as a real time data object and not when loaded from the database. If received over the real time channel in a mobile client and set totrue, the client should show a notification. A value ofnullorfalsemeans to not show a mobile notification. If a recipient receiving a message object with this flag set totrueand not being online, a mobile push notification should be sent, if the recipient has a mobile device registered.- Specified by:
isMobileNotificationin interfaceNotification- Returns:
- returns
trueif the web- or desktop client should show a notification when received
-