org.alfresco.repo.notification
Class NotificationServiceImplSystemTest.TestNotificationProvider

java.lang.Object
  extended by org.alfresco.repo.notification.NotificationServiceImplSystemTest.TestNotificationProvider
All Implemented Interfaces:
NotificationProvider
Enclosing class:
NotificationServiceImplSystemTest

public static class NotificationServiceImplSystemTest.TestNotificationProvider
extends java.lang.Object
implements NotificationProvider

This NotificationProvider is intended for use in test code in order to validate the content/state of notifications. It could, for example, be used in a test context as a drop-in replacement for the EMailNotificationProvider for validation and/or to prevent emails being sent from test code.

Since:
4.0

Field Summary
static java.lang.String NAME
           
 
Constructor Summary
NotificationServiceImplSystemTest.TestNotificationProvider()
           
 
Method Summary
 java.lang.String getName()
          Gets the name of the notification provider.
 void init()
          Init method registers provider with notification service.
 void sendNotification(NotificationContext notificationContext)
          Sends a notification using the notification provider.
 void setNotificationReceiver(NotificationServiceImplSystemTest.NotificationReceiver notificationReceiver)
           
 void setNotificationService(NotificationService notificationService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
Constructor Detail

NotificationServiceImplSystemTest.TestNotificationProvider

public NotificationServiceImplSystemTest.TestNotificationProvider()
Method Detail

setNotificationService

public void setNotificationService(NotificationService notificationService)

setNotificationReceiver

public void setNotificationReceiver(NotificationServiceImplSystemTest.NotificationReceiver notificationReceiver)

init

public void init()
Init method registers provider with notification service.


getName

public java.lang.String getName()
Description copied from interface: NotificationProvider
Gets the name of the notification provider.

Specified by:
getName in interface NotificationProvider
Returns:
notification provider name

sendNotification

public void sendNotification(NotificationContext notificationContext)
Description copied from interface: NotificationProvider
Sends a notification using the notification provider.

Specified by:
sendNotification in interface NotificationProvider
Parameters:
notificationContext - notification context


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