Clearspace API (2.5.29) Core Javadocs

com.jivesoftware.community.event
Class TaskEvent

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

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


Field Summary
static int TASK_CREATED
          � Task was added to the system.
static int TASK_MODIFIED
          A tag was added to an object.
static int TASK_REMOVED
          A tag was removed from an object.
 
Constructor Summary
TaskEvent(int eventType, com.jivesoftware.community.project.Task task, JiveContainer container, Map<String,Object> params)
          Creates a new task event.
 
Method Summary
 Date getDate()
           
 int getEventType()
           
 JiveObject getIdentifiedObject()
          Return an EntityDescriptor if thread is null and threadID is not.
 JiveContainer getJiveContainer()
           
 Map<String,Object> getParams()
           
 com.jivesoftware.community.project.Task getTask()
          Returns the task 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

TASK_CREATED

public static final int TASK_CREATED
� Task was added to the system.

See Also:
Constant Field Values

TASK_MODIFIED

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

See Also:
Constant Field Values

TASK_REMOVED

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

See Also:
Constant Field Values
Constructor Detail

TaskEvent

public TaskEvent(int eventType,
                 com.jivesoftware.community.project.Task task,
                 JiveContainer container,
                 Map<String,Object> params)
Creates a new task event.

Parameters:
eventType - the type of the tag event.
task - the task the event corresponds to.
container - the parent container
params - parameters corresponding to the event.
Method Detail

getEventType

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

getTask

public com.jivesoftware.community.project.Task getTask()
Returns the task that the event corresponds to.

Returns:
the task the event corresponds to.

getJiveContainer

public JiveContainer getJiveContainer()

getParams

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

getDate

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

getIdentifiedObject

public JiveObject getIdentifiedObject()
Return an EntityDescriptor if thread is null and threadID is not.

Returns:
if thread is null, an EntityDescriptor, otherwise the thread itself.

Clearspace Project Page

Copyright © 1999-2007 Jive Software.