|
Clearspace API (2.5.29) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.base.event.UserEvent
public class UserEvent
A class for user events. This class will be passed to UserListeners whenever a user event is fired and contains all the pertinent information to the event.
Certain event types will populate the params Map with additional objects as outlined below:
| Event Type | Extra Params | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| USER_CREATED | None | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| USER_DELETED | None | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| USER_MODIFIED |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Constructor Summary | |
|---|---|
UserEvent(int eventType,
User user,
Map<String,?> params)
|
|
| Method Summary | |
|---|---|
Date |
getDate()
|
int |
getEventType()
|
Exception |
getFailureException()
Returns the exception that indicates why a listener failed to handle an event. |
Map<String,?> |
getParams()
|
User |
getUser()
|
void |
setFailureException(Exception e)
Sets the exception that indicates why a listener failed to handle an event. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int USER_CREATED
public static final int USER_DELETED
public static final int USER_MODIFIED
public static final int USER_LOGGED_IN
public static final int USER_AUTHENTICATING
public static final String USER_MODIFIED_NAME
public static final String USER_MODIFIED_NAME_FIRST
public static final String USER_MODIFIED_NAME_LAST
public static final String USER_MODIFIED_NAME_VISIBLE
public static final String USER_MODIFIED_USERNAME
public static final String USER_MODIFIED_PASSWORD
public static final String USER_MODIFIED_EMAIL
public static final String USER_MODIFIED_EMAIL_VISIBLE
public static final String USER_MODIFIED_EXTERNAL
public static final String USER_MODIFIED_FEDERATED
public static final String USER_MODIFIED_ENABLED
public static final String USER_MODIFIED_LAST_LOGGED_IN
public static final String USER_MODIFIED_PROPERTIES
public static final String USER_MODIFIED_PROPERTIES_ADD
public static final String USER_MODIFIED_PROPERTIES_DELETED
public static final String USER_STATUS_MODIFIED
public static final String USER_MODIFIED_STATUS
| Constructor Detail |
|---|
public UserEvent(int eventType,
User user,
Map<String,?> params)
| Method Detail |
|---|
public int getEventType()
getEventType in interface com.jivesoftware.community.JiveEventpublic User getUser()
public Map<String,?> getParams()
getParams in interface com.jivesoftware.community.JiveEventpublic Date getDate()
getDate in interface com.jivesoftware.community.JiveEventpublic Exception getFailureException()
Sometimes the class triggering the event needs to know if any listeners for the event were unsuccessful for any reason. This is used internally by Jive classes and should be ignored by listener authors.
public void setFailureException(Exception e)
Sometimes the class triggering the event needs to know if any listeners for the event were unsuccessful for any reason. Listeners can call this method to indicate that the event was not handled successfully in all cases. This is used internally by Jive classes ashould be ignored by listener authors.
e - the exception.
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||