|
Clearspace API (1.7.0) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.community.event.CommunityEvent
public class CommunityEvent
A class for Community events. This class will be passed to CommunityListeners
whenever a community 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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| COMMUNITY_ADDED | None | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| COMMUNITY_DELETING | None | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| COMMUNITY_MOVED |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| COMMUNITY_MODIFIED |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| COMMUNITY_MERGING |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Field Summary | |
|---|---|
static int |
COMMUNITY_ADDED
Event type for whenever a community is added to another community. |
static int |
COMMUNITY_DELETING
Event type for whenever a community is about to be deleted. |
static int |
COMMUNITY_MERGING
When two communities are merged |
static int |
COMMUNITY_MODIFIED
Event type for whenever a community is modified. |
static int |
COMMUNITY_MOVED
Event type for whenever a community is moved. |
| Constructor Summary | |
|---|---|
CommunityEvent(int eventType,
Community community,
java.util.Map<java.lang.String,?> params)
|
|
| Method Summary | |
|---|---|
Community |
getCommunity()
|
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.util.Map<java.lang.String,?> |
getParams()
Returns a map of parameters which can be used to pass data to a listener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int COMMUNITY_ADDED
public static final int COMMUNITY_DELETING
public static final int COMMUNITY_MOVED
public static final int COMMUNITY_MODIFIED
public static final int COMMUNITY_MERGING
| Constructor Detail |
|---|
public CommunityEvent(int eventType,
Community community,
java.util.Map<java.lang.String,?> params)
| Method Detail |
|---|
public int getEventType()
JiveEvent
getEventType in interface JiveEventpublic Community getCommunity()
public java.util.Map<java.lang.String,?> getParams()
JiveEvent
getParams in interface JiveEventpublic java.util.Date getDate()
JiveEvent
getDate in interface JiveEvent
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||