Jive API (3.0.13) Core Javadocs

com.jivesoftware.community.event
Class BlogPostEvent

java.lang.Object
  extended by 
      extended by 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
MODIFIEDNone
RATEDUser, Rating, PreviousRating
VIEWEDNone


Nested Class Summary
static class BlogPostEvent.Type
           
 
Field Summary
static String KEY_EXISTING_POST_STATUS
           
 
Constructor Summary
BlogPostEvent()
           
BlogPostEvent(BlogPostEvent.Type eventType, BlogPost post, JiveContainer c, Map<String,? extends Object> params)
           
BlogPostEvent(BlogPostEvent.Type eventType, BlogPost post, Map<String,? extends Object> params)
          Creates a new post event.
 
Method Summary
 long getBlogID()
           
 ModificationType getContentModificationType()
          A modification type from the list below that corresponds to the implementing event's type.
static void setBlogID(Map params, long id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_EXISTING_POST_STATUS

public static final String KEY_EXISTING_POST_STATUS
See Also:
Constant Field Values
Constructor Detail

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)
Method Detail

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.

Jive Product Page

Copyright © 1999-2007 Jive Software.