|
Clearspace API (1.3.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.MessageEvent
public class MessageEvent
A class for ForumMessage events. This class will be passed to MessageListeners
whenever a forum message 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 |
|---|---|
| MESSAGE_ADDED | None |
| MESSAGE_DELETED | None |
| MESSAGE_MOVED | oldThreadID (Long) -- the ID of the thread
the message used to belong to. oldCommunityID (Long) -- the ID of the community the message used to belong to. |
| MESSAGE_MODIFIED | None |
| MESSAGE_MODERATION_MODIFIED | oldModerationValue (Integer) -- the old
moderation value of the message. moderatorID (Long) -- the userID of user that made the moderation change, or -1 if userID is unknown or not present. |
| MESSAGE_RATED | None |
| Field Summary | |
|---|---|
static int |
MESSAGE_ADDED
Message was added to the system. |
static int |
MESSAGE_DELETING
Message was deleted. |
static int |
MESSAGE_MODERATION_MODIFIED
The moderation value of the message was changed. |
static int |
MESSAGE_MODIFIED
The message was modified. |
static int |
MESSAGE_MOVED
The message was moved by becoming the root message of a new thread. |
static int |
MESSAGE_RATED
The message was rated. |
| Constructor Summary | |
|---|---|
MessageEvent(int eventType,
ForumMessage message,
java.util.Map<java.lang.String,? extends java.lang.Object> params)
Creates a new message event. |
|
| 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. |
ForumMessage |
getMessage()
Returns the ForumMessage that the event corresponds to. |
java.util.Map<java.lang.String,? extends java.lang.Object> |
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 MESSAGE_ADDED
public static final int MESSAGE_DELETING
public static final int MESSAGE_MODIFIED
public static final int MESSAGE_MODERATION_MODIFIED
public static final int MESSAGE_RATED
public static final int MESSAGE_MOVED
| Constructor Detail |
|---|
public MessageEvent(int eventType,
ForumMessage message,
java.util.Map<java.lang.String,? extends java.lang.Object> params)
eventType - the type of the message event.message - the message the event corresponds to.params - parameters corresponding to the event.| Method Detail |
|---|
public int getEventType()
JiveEvent
getEventType in interface JiveEventpublic ForumMessage getMessage()
public java.util.Map<java.lang.String,? extends java.lang.Object> 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 | |||||||||