com.jivesoftware.community.event
Class PrivateMessageEvent
java.lang.Object
com.jivesoftware.community.event.PrivateMessageEvent
- All Implemented Interfaces:
- com.jivesoftware.community.JiveEvent
public class PrivateMessageEvent
- extends Object
- implements com.jivesoftware.community.JiveEvent
A class for PrivateMessage events. This class will be passed to PrivateMessageListeners
whenever a private 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 |
| PRIVATE_MESSAGE_SENT | None |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PRIVATE_MESSAGE_SENT
public static final int PRIVATE_MESSAGE_SENT
- A private message was sent.
- See Also:
- Constant Field Values
PRIVATE_MESSAGE_READ
public static final int PRIVATE_MESSAGE_READ
- See Also:
- Constant Field Values
PrivateMessageEvent
public PrivateMessageEvent(int eventType,
PrivateMessage privateMessage,
Map<String,? extends Object> params)
- Creates a new private message event.
- Parameters:
eventType - the type of the message event.privateMessage - the private message the event corresponds to.params - parameters corresponding to the event.
getEventType
public int getEventType()
- Specified by:
getEventType in interface com.jivesoftware.community.JiveEvent
getPrivateMessage
public PrivateMessage getPrivateMessage()
- Returns the ForumMessage that the event corresponds to.
- Returns:
- the message the event corresponds to.
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.