com.jivesoftware.community.event
Class CommentEvent
java.lang.Object
com.jivesoftware.community.event.CommentEvent
- All Implemented Interfaces:
- com.jivesoftware.community.JiveEvent
public class CommentEvent
- extends Object
- implements com.jivesoftware.community.JiveEvent
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 | | Name | Value |
| originalValue | An Integer of the original value |
| community | The community in which the moderation is changing |
|
| COMMENT_MODIFIED | | Reason | Name | Value |
| Body was modified | Type | bodyModify |
| Body was modified | originalValue | The body before it was modified
|
|
| Property was modified | Type | propertyModify |
| Property was modified | PropertyKey | The name of the property |
| Property was modified | originalValue | The property value before it was
modified |
|
| Property was added | Type | propertyAdd |
| Property was added | PropertyKey | The name of the new property |
|
| Property was deleted | Type | propertyDelete |
| Property was deleted | PropertyKey | The name of the property that is
going to be deleted |
|
|
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMMENT_ADDED
public static final int COMMENT_ADDED
- Event type for whenever a comment is added to a document.
- See Also:
- Constant Field Values
COMMENT_DELETED
public static final int COMMENT_DELETED
- Event type for whenever a comment is deleted from a document.
- See Also:
- Constant Field Values
COMMENT_MODIFIED
public static final int COMMENT_MODIFIED
- Event type for whenever a comment is modified.
- See Also:
- Constant Field Values
COMMENT_MODERATION_MODIFIED
public static final int COMMENT_MODERATION_MODIFIED
- Event type for whenever a comment's moderation value changes.
- See Also:
- Constant Field Values
CommentEvent
public CommentEvent(int eventType,
Comment comment,
Map<String,? extends Object> params)
getEventType
public int getEventType()
- Specified by:
getEventType in interface com.jivesoftware.community.JiveEvent
getComment
public Comment getComment()
getParams
public Map<String,? extends Object> getParams()
- Specified by:
getParams in interface com.jivesoftware.community.JiveEvent
getDate
public Date getDate()
- Specified by:
getDate in interface com.jivesoftware.community.JiveEvent
Copyright © 1999-2007 Jive Software.