Interface InboxNotificationSender
@ProviderType
public interface InboxNotificationSender
OSGi Service that is used to send AEM Notifications notifications.
-
Method Summary
Modifier and TypeMethodDescriptionBuilds an InboxNotifcation object that can be populate prior to sending.voidsendInboxNotification(org.apache.sling.api.resource.ResourceResolver resourceResolver, InboxNotification inboxNotification) Sends a AEM inbox Notification.voidsendInboxNotifications(org.apache.sling.api.resource.ResourceResolver resourceResolver, List<InboxNotification> inboxNotifications) Sends multiple AEM inbox notifications.
-
Method Details
-
sendInboxNotification
void sendInboxNotification(org.apache.sling.api.resource.ResourceResolver resourceResolver, InboxNotification inboxNotification) throws com.adobe.granite.taskmanagement.TaskManagerException Sends a AEM inbox Notification.- Parameters:
resourceResolver- the resource resolver used to send the notification.inboxNotification- the notification to send.- Throws:
com.adobe.granite.taskmanagement.TaskManagerException
-
sendInboxNotifications
void sendInboxNotifications(org.apache.sling.api.resource.ResourceResolver resourceResolver, List<InboxNotification> inboxNotifications) throws com.adobe.granite.taskmanagement.TaskManagerException Sends multiple AEM inbox notifications.- Parameters:
resourceResolver- the resource resolver used to send the notification.inboxNotifications- the notifications to send.- Throws:
com.adobe.granite.taskmanagement.TaskManagerException
-
buildInboxNotification
InboxNotification buildInboxNotification()Builds an InboxNotifcation object that can be populate prior to sending.- Returns:
- a blank InboxNotification object.
-