|
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.community.event.ThreadEvent
public class ThreadEvent
A class for ForumThread events. This class will be passed to ThreadListeners
whenever a thread event is fired and contains all the pertinent information to the event.
| Event Type | Extra Params |
|---|---|
| THREAD_ADDED | None |
| THREAD_DELETING | None |
| THREAD_MOVED | oldCommunityID (Long) -- the ID of the community the thread used to belong to. |
| THREAD_MODERATION_MODIFIED | oldModerationValue
(Integer) -- the old moderation value of the thread. moderatorID (Long) -- the userID of user that made the moderation change, or -1 if userID is unknown or not present. |
| THREAD_VIEWED | None |
| Field Summary | |
|---|---|
static int |
THREAD_ADDED
Thread was added to the system. |
static int |
THREAD_DELETING
Thread is about to be deleted. |
static int |
THREAD_MODERATION_MODIFIED
The moderation value of the thread was changed. |
static int |
THREAD_MOVED
Thread was moved to another community. |
static int |
THREAD_RATED
The thread was rated. |
static int |
THREAD_VIEWED
The thread was viewed. |
| Constructor Summary | |
|---|---|
ThreadEvent(int eventType,
ForumThread thread,
JiveContainer container,
Map<String,? extends Object> params)
Creates a new thread event. |
|
| Method Summary | |
|---|---|
Date |
getDate()
|
int |
getEventType()
|
JiveObject |
getIdentifiedObject()
Return an EntityDescriptor if thread is null and threadID is not. |
JiveContainer |
getJiveContainer()
|
Map<String,? extends Object> |
getParams()
|
ForumThread |
getThread()
Returns the ForumThread that the event corresponds to. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int THREAD_ADDED
public static final int THREAD_DELETING
public static final int THREAD_MOVED
public static final int THREAD_MODERATION_MODIFIED
public static final int THREAD_RATED
public static final int THREAD_VIEWED
| Constructor Detail |
|---|
public ThreadEvent(int eventType,
ForumThread thread,
JiveContainer container,
Map<String,? extends Object> params)
eventType - the type of the message event.thread - the message the event corresponds to.params - parameters corresponding to the event.| Method Detail |
|---|
public int getEventType()
getEventType in interface com.jivesoftware.community.JiveEventpublic ForumThread getThread()
public JiveContainer getJiveContainer()
public Map<String,? extends Object> getParams()
getParams in interface com.jivesoftware.community.JiveEventpublic Date getDate()
getDate in interface com.jivesoftware.community.JiveEventpublic JiveObject getIdentifiedObject()
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||