|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.bigbross.bossa.notify.Event
This class represents an event in the notification bus.
| Field Summary | |
static int |
RESOURCE_EVENT
Constant to indicate a resource manipulation event type. |
static int |
WFNET_EVENT
Constant to indicate a work item or activity related event type. |
| Constructor Summary | |
Event(String id,
int type,
Map attributes,
Date time)
Creates an event. |
|
| Method Summary | |
int |
compareTo(Object o)
Note: this class has a natural ordering that is inconsistent with equals. |
Map |
getAttributes()
Returns the attributes map of this event. |
String |
getId()
Returns the id of this event. |
Date |
getTime()
Returns the time this event happened. |
int |
getType()
Returns the type of this event. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int WFNET_EVENT
public static final int RESOURCE_EVENT
| Constructor Detail |
public Event(String id,
int type,
Map attributes,
Date time)
The meaning of the id and of the attributes map are
defined by the generator of the event. The only exception is that a
event with type WFNET_EVENT should contain an
attribute named WFNetEvents.ATTRIB_RESOURCE_ID,
indicating the resource this event affects. Also all attribute
mappings are String id to String value.
id - the id of this event.type - the type os this event.attributes - a Map containing the attributes.time - the time this event happened.WFNetEvents.ATTRIB_RESOURCE_ID| Method Detail |
public String getId()
public int getType()
public Map getAttributes()
Notice that it is not possible to change this map. If tried, an UnsupportedOperationException will be thrown.
public Date getTime()
public int compareTo(Object o)
compareTo in interface ComparableComparable.compareTo(java.lang.Object)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||