Clearspace API (2.5.29) Core Javadocs

com.jivesoftware.community.event
Class AnnouncementEvent

java.lang.Object
  extended by com.jivesoftware.community.event.AnnouncementEvent
All Implemented Interfaces:
com.jivesoftware.community.JiveEvent

public class AnnouncementEvent
extends Object
implements com.jivesoftware.community.JiveEvent

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_MODIFIEDNone


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

ANNOUNCEMENT_CREATED

public static final int ANNOUNCEMENT_CREATED
Announcement was added to the system.

See Also:
Constant Field Values

ANNOUNCEMENT_DELETED

public static final int ANNOUNCEMENT_DELETED
Announcement was deleted.

See Also:
Constant Field Values

ANNOUNCEMENT_MODIFIED

public static final int ANNOUNCEMENT_MODIFIED
The announcement was modified. This will happen when the subject, body, or extended properties are changed.

See Also:
Constant Field Values
Constructor Detail

AnnouncementEvent

public AnnouncementEvent(int eventType,
                         Announcement announcement,
                         Map<String,? extends Object> params)
Creates a new announcement event.

Parameters:
eventType - the type of the announcement event.
announcement - the announcement the event corresponds to.
params - parameters corresponding to the event.
Method Detail

getEventType

public int getEventType()
Specified by:
getEventType in interface com.jivesoftware.community.JiveEvent

getAnnouncment

public Announcement getAnnouncment()
Returns the Announcement that the event corresponds to.

Returns:
the announcement 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

Clearspace Project Page

Copyright © 1999-2007 Jive Software.