KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jivesoftware > messenger > event > UserEventListener


1 /**
2  * $RCSfile: UserEventListener.java,v $
3  * $Revision: 1.2 $
4  * $Date: 2005/06/16 05:50:35 $
5  *
6  * Copyright (C) 2004-2005 Jive Software. All rights reserved.
7  *
8  * This software is published under the terms of the GNU Public License (GPL),
9  * a copy of which is included in this distribution.
10  */

11
12 package org.jivesoftware.messenger.event;
13
14 import org.jivesoftware.messenger.user.User;
15
16 import java.util.Map JavaDoc;
17
18 /**
19  * Interface to listen for group events. Use the
20  * {@link UserEventDispatcher#addListener(UserEventListener)}
21  * method to register for events.
22  *
23  * @author Matt Tucker
24  */

25 public interface UserEventListener {
26
27     /**
28      * A user was created.
29      *
30      * @param user the user.
31      * @param params event parameters.
32      */

33     public void userCreated(User user, Map JavaDoc params);
34
35     /**
36      * A user is being deleted.
37      *
38      * @param user the user.
39      * @param params event parameters.
40      */

41     public void userDeleting(User user, Map JavaDoc params);
42
43     /**
44      * A user's name, email, or an extended property was changed.
45      *
46      * @param user the user.
47      * @param params event parameters.
48      */

49     public void userModified(User user, Map JavaDoc params);
50 }
Popular Tags