|
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.CommentEvent
public class CommentEvent
A class for Comment events. This class will be passed to CommentListeners
whenever a comment 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 | |||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| COMMENT_ADDED | None | |||||||||||||||||||||||||||||||||||||||
| COMMENT_DELETED | None | |||||||||||||||||||||||||||||||||||||||
| COMMENT_MODERATION_MODIFIED |
| |||||||||||||||||||||||||||||||||||||||
| COMMENT_MODIFIED |
| |||||||||||||||||||||||||||||||||||||||
| Field Summary | |
|---|---|
static int |
COMMENT_ADDED
Event type for whenever a comment is added to a document. |
static int |
COMMENT_DELETED
Event type for whenever a comment is deleted from a document. |
static int |
COMMENT_MODERATION_MODIFIED
Event type for whenever a comment's moderation value changes. |
static int |
COMMENT_MODIFIED
Event type for whenever a comment is modified. |
| Constructor Summary | |
|---|---|
CommentEvent(int eventType,
Comment comment,
java.util.Map<java.lang.String,? extends java.lang.Object> params)
|
|
| Method Summary | |
|---|---|
Comment |
getComment()
|
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,? 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 COMMENT_ADDED
public static final int COMMENT_DELETED
public static final int COMMENT_MODIFIED
public static final int COMMENT_MODERATION_MODIFIED
| Constructor Detail |
|---|
public CommentEvent(int eventType,
Comment comment,
java.util.Map<java.lang.String,? extends java.lang.Object> params)
| Method Detail |
|---|
public int getEventType()
JiveEvent
getEventType in interface JiveEventpublic Comment getComment()
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 | |||||||||