Modifier and Type | Method and Description |
---|---|
NotificationMessage |
newNotificationMessage()
Creates a new
NotificationMessage object to set subject, message, notification text, and tokens to use in
a notification. |
NotificationParameters |
newNotificationParameters()
Creates a new
NotificationParameters object to set the parameters of the notification. |
NotificationTemplate |
newNotificationTemplate()
Creates a new
NotificationTemplate object to set the template to use and tokens to resolve for a
notification. |
void |
send(NotificationParameters parameters,
NotificationMessage message)
Sends a notification with message content.
|
void |
send(NotificationParameters parameters,
NotificationTemplate template)
Sends a notification with pre-defined template content.
|
NotificationParameters newNotificationParameters()
NotificationParameters
object to set the parameters of the notification.
For example, it can be used to specify the sender ID, a set of recipient IDs, and whether an in-app notification
is displayed in the Vault UI.NotificationTemplate newNotificationTemplate()
NotificationTemplate
object to set the template to use and tokens to resolve for a
notification.NotificationMessage newNotificationMessage()
NotificationMessage
object to set subject, message, notification text, and tokens to use in
a notification.void send(NotificationParameters parameters, NotificationMessage message)
NotificationParameters
or NotificationMessage
are caught here.
If send()
is called before NotificationParameters
has set recipients with
setRecipientsByUserIds()
, setRecipientsByGroups()
, or setRecipientsByRecordRoles()
, an
error will occur.
If at least one of these setRecipientsBy###
methods has been called with a non-null Set/List, an error
will not occur.
parameters
- notification parameters set for the notificationmessage
- message contentvoid send(NotificationParameters parameters, NotificationTemplate template)
NotificationParameters
or NotificationTemplate
are caught here.
If send()
is called before NotificationParameters
has set recipients with
setRecipientsByUserIds()
, setRecipientsByGroups()
, or setRecipientsByRecordRoles()
, an
error will occur.
If at least one of these setRecipientsBy###
methods has been called with a non-null Set/List, an error
will not occur.
parameters
- notification parameters set for the notificationtemplate
- content from a templateCopyright © Veeva Systems 2017–2021. All rights reserved.