com.jivesoftware.community.event
Class BlogPostEvent
java.lang.Object
com.jivesoftware.community.event.BlogPostEvent
public class BlogPostEvent
- extends
A class for BlogPost events. This class will be passed to EventListeners
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 |
| CREATED | None |
| DELETING | None |
| MODIFIED | None |
| RATED | User, Rating, PreviousRating |
| VIEWED | None |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEY_EXISTING_POST_STATUS
public static final String KEY_EXISTING_POST_STATUS
- See Also:
- Constant Field Values
BlogPostEvent
public BlogPostEvent()
BlogPostEvent
public BlogPostEvent(BlogPostEvent.Type eventType,
BlogPost post,
Map<String,? extends Object> params)
- Creates a new post event.
- Parameters:
eventType - the type of the post event.post - the post the event corresponds to.params - parameters corresponding to the event.
BlogPostEvent
public BlogPostEvent(BlogPostEvent.Type eventType,
BlogPost post,
JiveContainer c,
Map<String,? extends Object> params)
getBlogID
public long getBlogID()
setBlogID
public static void setBlogID(Map params,
long id)
getContentModificationType
public ModificationType getContentModificationType()
- A modification type from the list below that corresponds to the implementing event's type.
- Returns:
- a ModificationType.
Copyright © 1999-2007 Jive Software.