Clearspace API (2.5.22) Core Javadocs

com.jivesoftware.base.event
Class JivePropertyEvent

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

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

An event for JiveProperty changes Certain event types will populate the params Map with additional objects as outlined below:

Event Type Extra Params
PROPERTY_ADDED none
PROPERTY_REMOVED REMOVED_VALUES => list of values (excluding event param value)
PROPERTY_MODIFIED PARAM_MODIFIED_OLD_VALUE -> original value value


Field Summary
static String PARAM_MODIFIED_OLD_VALUE
          Param map value for modified values on a PROPERTY_MODIFIED event
static String PARAM_REMOVED_VALUES
          Param map value for removed values on a PROPERTY_REMOVED event
static int PROPERTY_ADDED
          A new property was added
static int PROPERTY_MODIFIED
          A property was modified.
static int PROPERTY_REMOVED
          A property was removed.
 
Constructor Summary
JivePropertyEvent(int eventType, String name, String value, Map<String,? extends Object> params)
          Creates a new jive property event.
 
Method Summary
 Date getDate()
          Returns the date the event was created
 int getEventType()
          Returns an integer value for the type of event this is
 String getName()
          Returns the name of the jive property
 Map<String,? extends Object> getParams()
          Returns any extra parameters associated with event
 String getValue()
          Returns the value of the jive property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_ADDED

public static final int PROPERTY_ADDED
A new property was added

See Also:
Constant Field Values

PROPERTY_REMOVED

public static final int PROPERTY_REMOVED
A property was removed.

See Also:
Constant Field Values

PROPERTY_MODIFIED

public static final int PROPERTY_MODIFIED
A property was modified.

See Also:
Constant Field Values

PARAM_REMOVED_VALUES

public static final String PARAM_REMOVED_VALUES
Param map value for removed values on a PROPERTY_REMOVED event

See Also:
Constant Field Values

PARAM_MODIFIED_OLD_VALUE

public static final String PARAM_MODIFIED_OLD_VALUE
Param map value for modified values on a PROPERTY_MODIFIED event

See Also:
Constant Field Values
Constructor Detail

JivePropertyEvent

public JivePropertyEvent(int eventType,
                         String name,
                         String value,
                         Map<String,? extends Object> params)
Creates a new jive property event.

Parameters:
name - the jive property
value - the value of the jive property
eventType - the type of the message event.
Method Detail

getEventType

public int getEventType()
Returns an integer value for the type of event this is

Specified by:
getEventType in interface com.jivesoftware.community.JiveEvent
Returns:
type of event

getDate

public Date getDate()
Returns the date the event was created

Specified by:
getDate in interface com.jivesoftware.community.JiveEvent
Returns:
the date the event was created

getParams

public Map<String,? extends Object> getParams()
Returns any extra parameters associated with event

Specified by:
getParams in interface com.jivesoftware.community.JiveEvent
Returns:
any extra parameters associated with event

getName

public String getName()
Returns the name of the jive property

Returns:
the name of the jive property

getValue

public String getValue()
Returns the value of the jive property

Returns:
the value of the jive property

Clearspace Project Page

Copyright © 1999-2007 Jive Software.