|
Clearspace API (1.10.16) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.community.event.EmailEvent
public class EmailEvent
A class for EmailEvent events. This class will be passed to EmailListeners
whenever an email event is fired and contains all the pertinent information to the event.
| Field Summary | |
|---|---|
static int |
EMAIL_RECEIVED
An email was received. |
static int |
EMAIL_SENDING
An email is about to be sent. |
| Constructor Summary | |
|---|---|
EmailEvent(int eventType,
javax.mail.Message message,
EmailMessage emailMessage,
java.util.Map<java.lang.String,? extends java.lang.Object> params)
Creates a new email event. |
|
| Method Summary | |
|---|---|
java.util.Date |
getDate()
Returns the date (as a Date object) that the event was created. |
EmailMessage |
getEmailMessage()
Returns the Clearspace email message that this email wraps. |
int |
getEventType()
Returns the event type corresponding to the event. |
javax.mail.Message |
getMessage()
Returns the Message 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 EMAIL_SENDING
public static final int EMAIL_RECEIVED
| Constructor Detail |
|---|
public EmailEvent(int eventType,
javax.mail.Message message,
EmailMessage emailMessage,
java.util.Map<java.lang.String,? extends java.lang.Object> params)
eventType - the type of the email event.message - the smtp message envelope the event corresponds to.emailMessage - the Clearspace email messageparams - parameters corresponding to the event.| Method Detail |
|---|
public int getEventType()
JiveEvent
getEventType in interface JiveEventpublic javax.mail.Message getMessage()
public EmailMessage getEmailMessage()
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 | |||||||||