|
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.BlogEvent
public class BlogEvent
A class for Blog events. This class will be passed to BlogListeners
whenever a blog 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 |
|---|---|
| BLOG_CREATED | None |
| BLOG_DELETING | None |
| BLOG_MODIFIED | None |
| Field Summary | |
|---|---|
static int |
BLOG_CREATED
Blog was added to the system. |
static int |
BLOG_DELETING
Blog is about to be deleted. |
static int |
BLOG_MODIFIED
Blog was modified. |
| Constructor Summary | |
|---|---|
BlogEvent(int eventType,
Blog blog,
java.util.Map<java.lang.String,? extends java.lang.Object> params)
Creates a new blog event. |
|
| Method Summary | |
|---|---|
Blog |
getBlog()
Returns the blog that the event corresponds to. |
java.util.Date |
getDate()
Returns the date (as a Date object) that the event was created. |
int |
getEventType()
Returns the event type corresponding to the event. |
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 BLOG_CREATED
public static final int BLOG_DELETING
public static final int BLOG_MODIFIED
| Constructor Detail |
|---|
public BlogEvent(int eventType,
Blog blog,
java.util.Map<java.lang.String,? extends java.lang.Object> params)
eventType - the type of the blog event.blog - the blog the event corresponds to.params - parameters corresponding to the event.| Method Detail |
|---|
public int getEventType()
JiveEvent
getEventType in interface JiveEventpublic Blog getBlog()
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 | |||||||||