Constructors
A otris.notifications.NotificationEntry is the persisted version of a otris.notifications.Notification.
- Since:
- Documents 5.0e
Extends
Methods
-
delete()
-
Delete entry
-
getStatus(){otris.notifications.NotificationStatus}
-
Returns the status of the notification entry.
Returns:
Type Description otris.notifications.NotificationStatus current status -
getTimestamp(){Number}
-
Returns the timestamp of the notification entry.
Returns:
Type Description Number timestamp (number of milliseconds elapsed since January 1, 1970 00:00:00 UTC) -
publish()
-
Alias for
save(). -
save()
-
Persists the notification entry
-
inherited setAction(action)
-
Set the click action of the notification
Name Type Description actionotris.ScriptReturn notification onclick action
-
inherited setMessage(message)
-
Set the notification message
Name Type Description messagestring message
-
inherited setOnloadAction(onloadAction)
-
Set the onload action of the notification
Name Type Description onloadActionotris.ScriptReturn notification onload action
-
inherited setProducer(user)
-
Set the user who produced the notification (e.g. the author of a file message)
Defaults to the current system userName Type Description userSystemUser optional system user
- Since:
- Documents 5.0d HF2
-
inherited setProgressValue(progressValue)
-
Set the current progress value for a long running task. Set a value between 0 and 100.
A value over 100 means the task is done and was successful.
A negative value indicates that the task failed.
The notification type must be set toprogress.
It is also necessary to set areferenceIdas a identifier for the task.Name Type Description progressValueNumber current progress
- Since:
- Documents 5.0e
-
inherited setReferenceId(referenceId)
-
Set a referenceId for the notification
Name Type Description referenceIdstring reference id
-
inherited setRemoveOnAction(removeOnAction)
-
Remove the notification if action is executed
Name Type Description removeOnActionboolean remove on action flag
-
setStatus(status)
-
Change the status of the notification entry.
Name Type Description statusotris.notifications.NotificationStatus new status
-
inherited setSticky(sticky)
-
Remove notification only if closed or clicked (otris.notifications.NotificationDefaults.sticky)
Name Type Description stickyboolean sticky flag
-
inherited setTimeout(timeout)
-
Set the timeout for this notification
Name Type Description timeoutnumber notification timeout
-
inherited setTitle(title)
-
Set the notification title
Name Type Description titlestring notification title
-
inherited setType(type)
-
Set the type of the notification
Name Type Description typestring notification type