|
Clearspace API (2.5.18) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.community.event.BlogPostEvent
public class BlogPostEvent
A class for BlogPost events. This class will be passed to BlogPostListeners
whenever a blog post 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 |
|---|---|
| POST_CREATED | None |
| POST_DELETING | None |
| POST_MODIFIED | None |
| POST_RATED | User, Rating, PreviousRating |
| POST_VIEWED | None |
| Field Summary | |
|---|---|
static String |
EDITING_USER
User who edited the post, not necessarily the author. |
static int |
POST_CREATED
Post was added to the system. |
static int |
POST_DELETING
Post is about to be deleted. |
static int |
POST_MODIFIED
Post was modified. |
static int |
POST_MOVED
Post was moved. |
static int |
POST_RATED
Post was rated. |
static int |
POST_VIEWED
Post was viewed. |
| Constructor Summary | |
|---|---|
BlogPostEvent(int eventType,
BlogPost post,
Map<String,? extends Object> params)
Creates a new post event. |
|
| Method Summary | |
|---|---|
BlogPost |
getBlogPost()
Returns the post 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 POST_CREATED
public static final int POST_DELETING
public static final int POST_MODIFIED
public static final int POST_RATED
public static final int POST_VIEWED
public static final int POST_MOVED
public static final String EDITING_USER
| Constructor Detail |
|---|
public BlogPostEvent(int eventType,
BlogPost post,
Map<String,? extends Object> params)
eventType - the type of the post event.post - the post the event corresponds to.params - parameters corresponding to the event.| Method Detail |
|---|
public int getEventType()
getEventType in interface com.jivesoftware.community.JiveEventpublic BlogPost getBlogPost()
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 | |||||||||