|
Jive API (3.0.13) 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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CREATED | None | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| DELETED | None | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| MODIFIED |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Nested Class Summary | |
|---|---|
static class |
UserEvent.Type
|
| Field Summary | |
|---|---|
static String |
PROFILE_VIEW_TYPE
|
static String |
USER_MODIFIED_EMAIL
|
static String |
USER_MODIFIED_EMAIL_VISIBLE
|
static String |
USER_MODIFIED_ENABLED
|
static String |
USER_MODIFIED_EXTERNAL
|
static String |
USER_MODIFIED_FEDERATED
|
static String |
USER_MODIFIED_LAST_LOGGED_IN
|
static String |
USER_MODIFIED_NAME
|
static String |
USER_MODIFIED_NAME_FIRST
|
static String |
USER_MODIFIED_NAME_LAST
|
static String |
USER_MODIFIED_NAME_VISIBLE
|
static String |
USER_MODIFIED_PASSWORD
|
static String |
USER_MODIFIED_PROPERTIES
|
static String |
USER_MODIFIED_PROPERTIES_ADD
|
static String |
USER_MODIFIED_PROPERTIES_DELETED
|
static String |
USER_MODIFIED_STATUS
|
static String |
USER_MODIFIED_USERNAME
|
static String |
USER_STATUS_MODIFIED
|
| Constructor Summary | |
|---|---|
UserEvent()
|
|
UserEvent(UserEvent.Type eventType,
UserTemplate user,
Map<String,?> params)
|
|
| Method Summary | |
|---|---|
Exception |
getFailureException()
Returns the exception that indicates why a listener failed to handle an event. |
long |
getIndirectObjectID()
Get the id of the Indirect object, or -1 if the given event's Type is not ditransitive. |
int |
getIndirectObjectType()
Get the type of the Indirect object, or -1 if the given event's Type is not ditransitive. |
String |
getMetadata()
Return the metadata, or null if none is available. |
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 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
public static final String PROFILE_VIEW_TYPE
| Constructor Detail |
|---|
public UserEvent()
public UserEvent(UserEvent.Type eventType,
UserTemplate user,
Map<String,?> params)
| Method Detail |
|---|
public 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.public long getIndirectObjectID()
public int getIndirectObjectType()
public String getMetadata()
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||