|
Jive Forums API (5.5.20.2-oracle) Core Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.base.event.GroupEvent
public class GroupEvent
A class for group events. This class will be passed to GroupListeners whenever a group 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 | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GROUP_CREATED | None | ||||||||||||||||||||||||||||||||||||||||||||||||
GROUP_DELETED | None | ||||||||||||||||||||||||||||||||||||||||||||||||
GROUP_USER_ADDED | A param named 'User' with a 'User' object as a payload | ||||||||||||||||||||||||||||||||||||||||||||||||
GROUP_USER_DELETED | A param named 'User' with a 'User' object as a payload | ||||||||||||||||||||||||||||||||||||||||||||||||
GROUP_ADMINISTRATOR_ADDED | A param named 'Administrator' with a 'User' object as a payload | ||||||||||||||||||||||||||||||||||||||||||||||||
GROUP_ADMINISTRATOR_DELETED | A param named 'Administrator' with a 'User' object as a payload | ||||||||||||||||||||||||||||||||||||||||||||||||
GROUP_MODIFIED |
|
Field Summary | |
---|---|
static int |
GROUP_ADMINISTRATOR_ADDED
Event type for whenever an administrator is added to a group. |
static int |
GROUP_ADMINISTRATOR_DELETED
Event type for whenever an administrator is deleted from a group. |
static int |
GROUP_CREATED
Event type for whenever a group is created. |
static int |
GROUP_DELETED
Event type for whenever a group is deleted. |
static int |
GROUP_MODIFIED
Event type for whenever a group is modified (properties added, etc). |
static int |
GROUP_USER_ADDED
Event type for whenever a user is added to a group. |
static int |
GROUP_USER_DELETED
Event type for whenever a user is deleted from a group. |
Constructor Summary | |
---|---|
GroupEvent(int eventType,
Group group,
java.util.Map params)
|
Method Summary | |
---|---|
java.util.Date |
getDate()
Returns the date (as a Date object) that the event was created. |
int |
getEventType()
Returns the event type corresponding to the event. |
java.lang.Exception |
getFailureException()
Returns the exception that indicates why a listener failed to handle an event. |
Group |
getGroup()
|
java.util.Map |
getParams()
Returns a map of parameters which can be used to pass data to a listener. |
void |
setFailureException(java.lang.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 GROUP_CREATED
public static final int GROUP_DELETED
public static final int GROUP_USER_ADDED
public static final int GROUP_USER_DELETED
public static final int GROUP_ADMINISTRATOR_ADDED
public static final int GROUP_ADMINISTRATOR_DELETED
public static final int GROUP_MODIFIED
Constructor Detail |
---|
public GroupEvent(int eventType, Group group, java.util.Map params)
Method Detail |
---|
public int getEventType()
JiveEvent
getEventType
in interface JiveEvent
public Group getGroup()
public java.util.Map getParams()
JiveEvent
getParams
in interface JiveEvent
public java.util.Date getDate()
JiveEvent
getDate
in interface JiveEvent
public java.lang.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(java.lang.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.
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |