org.lexevs.cts2.admin
Class NotificationAdminOperationImpl

java.lang.Object
  extended by org.lexevs.cts2.admin.NotificationAdminOperationImpl
All Implemented Interfaces:
NotificationAdminOperation

public class NotificationAdminOperationImpl
extends java.lang.Object
implements NotificationAdminOperation

The Class NotificationAdminOperationImpl.

Author:
Kevin Peterson

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.lexevs.cts2.admin.NotificationAdminOperation
NotificationAdminOperation.NotificationStatus
 
Constructor Summary
NotificationAdminOperationImpl()
           
 
Method Summary
protected  ListenerRegistry getListenerRegistry()
          Gets the listener registry.
 java.lang.String registerForNotification(DatabaseServiceEventListener listener)
          Register the given Notification Listener in the system.
 void updateNotificationRegistration(java.lang.String listenerId, DatabaseServiceEventListener listener)
          Replaces a Notification Listener with an Updated Notification Listener
 void updateNotificationRegistrationStatus(java.lang.String listenerId, NotificationAdminOperation.NotificationStatus status)
          Update the Notification Registration Status of a Notification Listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationAdminOperationImpl

public NotificationAdminOperationImpl()
Method Detail

registerForNotification

public java.lang.String registerForNotification(DatabaseServiceEventListener listener)
Description copied from interface: NotificationAdminOperation
Register the given Notification Listener in the system.

Specified by:
registerForNotification in interface NotificationAdminOperation
Parameters:
listener - The Notification Listener
Returns:
The Notification Identifier: The unique identifier of the particular Notification in the system.

updateNotificationRegistration

public void updateNotificationRegistration(java.lang.String listenerId,
                                           DatabaseServiceEventListener listener)
                                    throws NotificationNotRegisteredException
Description copied from interface: NotificationAdminOperation
Replaces a Notification Listener with an Updated Notification Listener

Specified by:
updateNotificationRegistration in interface NotificationAdminOperation
Parameters:
listenerId - The Notification Identifier of the Notification to be updated.
listener - the listener
Throws:
NotificationNotRegisteredException

updateNotificationRegistrationStatus

public void updateNotificationRegistrationStatus(java.lang.String listenerId,
                                                 NotificationAdminOperation.NotificationStatus status)
                                          throws NotificationNotRegisteredException
Description copied from interface: NotificationAdminOperation
Update the Notification Registration Status of a Notification Listener.

Specified by:
updateNotificationRegistrationStatus in interface NotificationAdminOperation
Parameters:
listenerId - The Notification Identifier of the Notification to be updated.
status - The new Notification Registration Status
Throws:
NotificationNotRegisteredException

getListenerRegistry

protected ListenerRegistry getListenerRegistry()
Gets the listener registry.

Returns:
the listener registry

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.