org.alfresco.repo.notification
Class NotificationServiceImpl

java.lang.Object
  extended by org.alfresco.repo.notification.NotificationServiceImpl
All Implemented Interfaces:
NotificationService

public class NotificationServiceImpl
extends java.lang.Object
implements NotificationService

Notification service implementation.

Since:
4.0

Constructor Summary
NotificationServiceImpl()
           
 
Method Summary
 boolean exists(java.lang.String notificationProvider)
          Indicates whether a notification provider exists or not.
 java.util.List getNotificationProviders()
          Gets a list of all the currently available notification providers.
 void register(NotificationProvider notificationProvider)
          Registers a notification provider with the notification service.
 void sendNotification(java.lang.String notificationProvider, NotificationContext notificationContext)
          Send notification using the names notification provider and notification context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationServiceImpl

public NotificationServiceImpl()
Method Detail

register

public void register(NotificationProvider notificationProvider)
Description copied from interface: NotificationService
Registers a notification provider with the notification service.

Specified by:
register in interface NotificationService
Parameters:
notificationProvider - notification provider
See Also:
NotificationService.register(org.alfresco.service.cmr.notification.NotificationProvider)

exists

public boolean exists(java.lang.String notificationProvider)
Description copied from interface: NotificationService
Indicates whether a notification provider exists or not.

Specified by:
exists in interface NotificationService
Parameters:
notificationProvider - notification provider
Returns:
boolean true if exists, false otherwise
See Also:
NotificationService.exists(java.lang.String)

getNotificationProviders

public java.util.List getNotificationProviders()
Description copied from interface: NotificationService
Gets a list of all the currently available notification providers.

Specified by:
getNotificationProviders in interface NotificationService
Returns:
List<String> notification provider names
See Also:
NotificationService.getNotificationProviders()

sendNotification

public void sendNotification(java.lang.String notificationProvider,
                             NotificationContext notificationContext)
Description copied from interface: NotificationService
Send notification using the names notification provider and notification context.

Specified by:
sendNotification in interface NotificationService
Parameters:
notificationProvider - notification provider
notificationContext - notification context
See Also:
NotificationService.sendNotification(java.lang.String, org.alfresco.service.cmr.notification.NotificationContext)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.