Jive API (3.0.13) Core Javadocs

com.jivesoftware.community.event
Class CommunityEvent

java.lang.Object
  extended by 
      extended by com.jivesoftware.community.event.CommunityEvent

public class CommunityEvent
extends

A class for Community events. This class will be passed to EventListeners whenever a community 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 TypeExtra Params
ADDEDNone
DELETINGNone
DELETEDNone
MOVED
NameValue
OriginalCommunityThe original community
DestinationCommunityThe destination community
MODIFIED
ReasonNameValue
Name was modifiedTypenameModify
Name was modifiedoriginalValueThe name before it was modified

Description was modifiedTypedescriptionModify
Description was modifiedoriginalValueThe description before it was modified

Property was modifiedTypepropertyModify
Property was modifiedPropertyKeyThe name of the property
Property was modifiedoriginalValueThe property value before it was modified

Property was addedTypepropertyAdd
Property was addedPropertyKeyThe name of the new property

Property was deletedTypepropertyDelete
Property was deletedPropertyKeyThe name of the property that is going to be deleted

A blog was addedTypeblogAdded
A blog was addedblogThe blog being added

A blog was removedTypeblogRemoved
A blog was removedblogThe blog being removed

Community index was changedTypeIndexChange
MERGING
NameValue
destCommunityThe destination community


Nested Class Summary
static class CommunityEvent.Type
           
 
Field Summary
static String KEY_DEST_COMMUNITY
           
static String KEY_DEST_COMMUNITY_PARENT
           
static String PARAM_VIEW_TYPE
           
 
Constructor Summary
CommunityEvent()
           
CommunityEvent(CommunityEvent.Type eventType, Community community)
           
CommunityEvent(CommunityEvent.Type eventType, Community community, Map<String,Object> params)
           
 
Method Summary
 ContainerEvent.ModificationType getContainerModificationType()
          A modification type from the list below that corresponds to the implementing event's type.
 EntityDescriptor getDestination()
           
 EntityDescriptor getDestinationParent()
           
 EntityDescriptor getParent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_VIEW_TYPE

public static final String PARAM_VIEW_TYPE
See Also:
Constant Field Values

KEY_DEST_COMMUNITY

public static final String KEY_DEST_COMMUNITY
See Also:
Constant Field Values

KEY_DEST_COMMUNITY_PARENT

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

CommunityEvent

public CommunityEvent()

CommunityEvent

public CommunityEvent(CommunityEvent.Type eventType,
                      Community community)

CommunityEvent

public CommunityEvent(CommunityEvent.Type eventType,
                      Community community,
                      Map<String,Object> params)
Method Detail

getContainerModificationType

public ContainerEvent.ModificationType getContainerModificationType()
A modification type from the list below that corresponds to the implementing event's type.

Returns:
a ModificationType.

getParent

public EntityDescriptor getParent()

getDestination

public EntityDescriptor getDestination()

getDestinationParent

public EntityDescriptor getDestinationParent()

Jive Product Page

Copyright © 1999-2007 Jive Software.