From dfdd9440011d222f12e6e336ed6ab6e59ee2be4b Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Sun, 26 Aug 2007 20:35:25 +0000
Subject: [PATCH] Make a change to the account status notification handler API so that it is possible to provide additional properties along with the notification. This makes it possible to develop account status notification handlers that can act more intelligently and/or provide more useful information.
---
opends/src/server/org/opends/server/api/AccountStatusNotificationHandler.java | 31 +++----------------------------
1 files changed, 3 insertions(+), 28 deletions(-)
diff --git a/opends/src/server/org/opends/server/api/AccountStatusNotificationHandler.java b/opends/src/server/org/opends/server/api/AccountStatusNotificationHandler.java
index 1a74854..d568304 100644
--- a/opends/src/server/org/opends/server/api/AccountStatusNotificationHandler.java
+++ b/opends/src/server/org/opends/server/api/AccountStatusNotificationHandler.java
@@ -25,18 +25,16 @@
* Portions Copyright 2006-2007 Sun Microsystems, Inc.
*/
package org.opends.server.api;
-import org.opends.messages.Message;
import java.util.List;
+import org.opends.messages.Message;
import org.opends.server.admin.std.server.
AccountStatusNotificationHandlerCfg;
import org.opends.server.config.ConfigException;
import org.opends.server.types.AccountStatusNotification;
-import org.opends.server.types.AccountStatusNotificationType;
-import org.opends.server.types.DN;
import org.opends.server.types.InitializationException;
@@ -133,35 +131,12 @@
/**
* Performs any processing that may be necessary in conjunction with
- * the provided account status notification type.
- *
- * @param notificationType The type for this account status
- * notification.
- * @param userDN The DN of the user entry to which this
- * notification applies.
- * @param message The human-readable message for this
- * notification.
- */
- public abstract void
- handleStatusNotification(
- AccountStatusNotificationType notificationType,
- DN userDN, Message message);
-
-
-
- /**
- * Performs any processing that may be necessary in conjunction with
* the provided account status notification.
*
* @param notification The account status notification to be
* processed.
*/
- public void handleStatusNotification(
- AccountStatusNotification notification)
- {
- handleStatusNotification(notification.getNotificationType(),
- notification.getUserDN(),
- notification.getMessage());
- }
+ public abstract void handleStatusNotification(
+ AccountStatusNotification notification);
}
--
Gitblit v1.10.0