|
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.AnnouncementEvent
public class AnnouncementEvent
A class for Announcement events. This class will be passed to AnnouncementListeners
whenever an announcement 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 |
|---|---|
| ANNOUNCEMENT_CREATED | None |
| ANNOUNCEMENT_DELETED | None |
| ANNOUNCEMENT_MODIFIED | None |
| Field Summary | |
|---|---|
static int |
ANNOUNCEMENT_CREATED
Announcement was added to the system. |
static int |
ANNOUNCEMENT_DELETED
Announcement was deleted. |
static int |
ANNOUNCEMENT_MODIFIED
The announcement was modified. |
| Constructor Summary | |
|---|---|
AnnouncementEvent(int eventType,
Announcement announcement,
Map<String,? extends Object> params)
Creates a new announcement event. |
|
| Method Summary | |
|---|---|
Announcement |
getAnnouncment()
Returns the Announcement that the event corresponds to. |
Date |
getDate()
|
int |
getEventType()
|
Map<String,? extends Object> |
getParams()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ANNOUNCEMENT_CREATED
public static final int ANNOUNCEMENT_DELETED
public static final int ANNOUNCEMENT_MODIFIED
| Constructor Detail |
|---|
public AnnouncementEvent(int eventType,
Announcement announcement,
Map<String,? extends Object> params)
eventType - the type of the announcement event.announcement - the announcement the event corresponds to.params - parameters corresponding to the event.| Method Detail |
|---|
public int getEventType()
getEventType in interface com.jivesoftware.community.JiveEventpublic Announcement getAnnouncment()
public Map<String,? extends Object> getParams()
getParams in interface com.jivesoftware.community.JiveEventpublic Date getDate()
getDate in interface com.jivesoftware.community.JiveEvent
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||