Clearspace API (2.5.22) Core Javadocs

com.jivesoftware.community.event
Class TagEvent

java.lang.Object
  extended by com.jivesoftware.community.event.TagEvent
All Implemented Interfaces:
com.jivesoftware.community.JiveEvent

public class TagEvent
extends Object
implements com.jivesoftware.community.JiveEvent

A class for ContentTag events. This class will be passed to TagListeners whenever a tag 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
TAG_CREATED None


Field Summary
static int TAG_ADDED
          A tag was added to an object.
static int TAG_CREATED
          Tag was added to the system.
static int TAG_REMOVED
          A tag was removed from an object.
 
Constructor Summary
TagEvent(int eventType, ContentTag tag, Map<String,? extends Object> params, long parentObjectID, int parentObjectType)
          Creates a new tag event.
 
Method Summary
 Date getDate()
           
 int getEventType()
           
 Map<String,? extends Object> getParams()
           
 long getParentObjectID()
           
 int getParentObjectType()
           
 ContentTag getTag()
          Returns the tag that the event corresponds to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG_CREATED

public static final int TAG_CREATED
Tag was added to the system.

See Also:
Constant Field Values

TAG_ADDED

public static final int TAG_ADDED
A tag was added to an object.

See Also:
Constant Field Values

TAG_REMOVED

public static final int TAG_REMOVED
A tag was removed from an object.

See Also:
Constant Field Values
Constructor Detail

TagEvent

public TagEvent(int eventType,
                ContentTag tag,
                Map<String,? extends Object> params,
                long parentObjectID,
                int parentObjectType)
Creates a new tag event.

Parameters:
eventType - the type of the tag event.
tag - the tag the event corresponds to.
params - parameters corresponding to the event.
parentObjectID - the parent object id
parentObjectType - the parent object type
Method Detail

getEventType

public int getEventType()
Specified by:
getEventType in interface com.jivesoftware.community.JiveEvent

getTag

public ContentTag getTag()
Returns the tag that the event corresponds to.

Returns:
the tag the event corresponds to.

getParams

public Map<String,? extends Object> getParams()
Specified by:
getParams in interface com.jivesoftware.community.JiveEvent

getDate

public Date getDate()
Specified by:
getDate in interface com.jivesoftware.community.JiveEvent

getParentObjectID

public long getParentObjectID()

getParentObjectType

public int getParentObjectType()

Clearspace Project Page

Copyright © 1999-2007 Jive Software.