| java.lang.Object com.bigbross.bossa.notify.Event
Field Summary | |
final public static int | RESOURCE_EVENT Constant to indicate a resource manipulation event type. | final public static int | WFNET_EVENT Constant to indicate a work item or activity related event type. |
Constructor Summary | |
public | Event(String id, int type, Map attributes, Date time) Creates an event. |
Method Summary | |
public int | compareTo(Object o) Note: this class has a natural ordering that is inconsistent with
equals. | public Map | getAttributes() Returns the attributes map of this event. | public String | getId() Returns the id of this event. | public Date | getTime() Returns the time this event happened. | public int | getType() Returns the type of this event. |
RESOURCE_EVENT | final public static int RESOURCE_EVENT(Code) | | Constant to indicate a resource manipulation event type.
|
WFNET_EVENT | final public static int WFNET_EVENT(Code) | | Constant to indicate a work item or activity related event type.
|
Event | public Event(String id, int type, Map attributes, Date time)(Code) | | Creates an event. For a list of the possible event types, see the
constants defined in this class.
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.
Parameters: id - the id of this event. Parameters: type - the type os this event. Parameters: attributes - a Map containing the attributes. Parameters: time - the time this event happened. See Also: com.bigbross.bossa.wfnet.WFNetEvents.ATTRIB_RESOURCE_ID |
getAttributes | public Map getAttributes()(Code) | | Returns the attributes map of this event.
Notice that it is not possible to change this map. If tried, an
UnsupportedOperationException will be thrown.
the attributes map of this event. |
getId | public String getId()(Code) | | Returns the id of this event.
the id of this event. |
getTime | public Date getTime()(Code) | | Returns the time this event happened.
the time this event happened. |
getType | public int getType()(Code) | | Returns the type of this event.
the type of this event. |
|
|