| Modifiers | Name | Description |
|---|---|---|
enum |
NotificationMessage.NotificationType |
| Type | Name and description |
|---|---|
java.lang.String |
getLink()Get the link to detail/source, expanded using the message Map; if not set and topic has a NotificationTopic record will default to value there |
java.lang.String |
getMessageJson() |
java.util.Map<java.lang.String, java.lang.Object> |
getMessageMap() |
java.lang.String |
getNotificationMessageId() |
java.util.Set<java.lang.String> |
getNotifyUserIds()Get userId for all users associated with this notification, directly or through the UserGroup, and who have NotificationTopicUser.receiveNotifications=Y, which if not set (or there is no NotificationTopicUser record) defaults to NotificationTopic.receiveNotifications (if not set defaults to Y) |
java.lang.String |
getTitle()Get the title, expanded using the message Map; if not set and topic has a NotificationTopic record will default to value there |
java.lang.String |
getTopic() |
java.lang.String |
getType()Get the type as a String; if not set and topic has a NotificationTopic record will default to value there |
java.lang.String |
getUserGroupId() |
java.util.Set<java.lang.String> |
getUserIds() |
java.lang.String |
getWrappedMessageJson()Result of getWrappedMessageMap() as a JSON String |
java.util.Map<java.lang.String, java.lang.Object> |
getWrappedMessageMap()Get a Map with: topic, sentDate, notificationMessageId, message, title, link, type, and showAlert using the get method for each |
boolean |
isPersistOnSend() |
boolean |
isShowAlert()Show an alert for this notification? |
NotificationMessage |
link(java.lang.String link)Set the link to get more detail about the notification or go to its source, a GString (${} syntax) expanded using the message Map |
NotificationMessage |
markSent(java.lang.String userId) |
NotificationMessage |
markViewed(java.lang.String userId) |
NotificationMessage |
message(java.lang.String messageJson)Set the message as a JSON String. |
NotificationMessage |
message(java.util.Map<java.lang.String, java.lang.Object> message)Set the message as a JSON String. |
NotificationMessage |
persistOnSend(boolean persist) |
NotificationMessage |
send(boolean persist)Send this Notification Message. |
NotificationMessage |
send()Send this Notification Message using persistOnSend setting (defaults to false). |
NotificationMessage |
showAlert(boolean show) |
NotificationMessage |
title(java.lang.String title)Set the title to display, a GString (${} syntax) that will be expanded using the message Map; may be a localization template name |
NotificationMessage |
topic(java.lang.String topic) |
NotificationMessage |
type(NotificationMessage.NotificationType type) |
NotificationMessage |
type(java.lang.String type)Must be a String for a valid NotificationType (ie info, success, warning, or danger) |
NotificationMessage |
userGroupId(java.lang.String userGroupId) |
NotificationMessage |
userId(java.lang.String userId) |
NotificationMessage |
userIds(java.util.Set<java.lang.String> userIds) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Get the link to detail/source, expanded using the message Map; if not set and topic has a NotificationTopic record will default to value there
Get userId for all users associated with this notification, directly or through the UserGroup, and who have NotificationTopicUser.receiveNotifications=Y, which if not set (or there is no NotificationTopicUser record) defaults to NotificationTopic.receiveNotifications (if not set defaults to Y)
Get the title, expanded using the message Map; if not set and topic has a NotificationTopic record will default to value there
Get the type as a String; if not set and topic has a NotificationTopic record will default to value there
Result of getWrappedMessageMap() as a JSON String
Get a Map with: topic, sentDate, notificationMessageId, message, title, link, type, and showAlert using the get method for each
Show an alert for this notification? If not set and topic has a NotificationTopic record will default to value there
Set the link to get more detail about the notification or go to its source, a GString (${} syntax) expanded using the message Map
Set the message as a JSON String. The top-level should be a Map (JSON Object).
messageJson - The message as a JSON string containing a Map (JSON Object)Set the message as a JSON String. The top-level should be a Map (JSON Object).
message - The message as a Map (JSON Object), must be convertible to JSON StringSend this Notification Message.
persist - If true this is persisted and message received is tracked. If false this is sent to active topic
listeners only.Send this Notification Message using persistOnSend setting (defaults to false).
Set the title to display, a GString (${} syntax) that will be expanded using the message Map; may be a localization template name
Must be a String for a valid NotificationType (ie info, success, warning, or danger)