org.mycore.common.events
Class MCREvent
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<String,Object>
org.mycore.common.events.MCREvent
- All Implemented Interfaces:
- Serializable, Cloneable, Map<String,Object>
public class MCREvent
- extends Hashtable<String,Object>
Represents an event that occured in the MyCoRe system. Events are of a
predefined event type like create, update, delete and an object type like
object or file. They can be handled by MCREventHandler implementations.
Events are automatically created by some MyCoRe components and are forwarded
to the handlers by MCREventManager.
- Author:
- Frank Luetzenkirchen
- See Also:
- Serialized Form
|
Constructor Summary |
MCREvent(String objType,
String evtType)
Creates a new event object of the given object type (object, file) and
event type (create, update, delete) |
| Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
CREATE_EVENT
public static final String CREATE_EVENT
- Pre-defined event types *
- See Also:
- Constant Field Values
UPDATE_EVENT
public static final String UPDATE_EVENT
- See Also:
- Constant Field Values
DELETE_EVENT
public static final String DELETE_EVENT
- See Also:
- Constant Field Values
REPAIR_EVENT
public static final String REPAIR_EVENT
- See Also:
- Constant Field Values
OBJECT_TYPE
public static final String OBJECT_TYPE
- See Also:
- Constant Field Values
DERIVATE_TYPE
public static final String DERIVATE_TYPE
- See Also:
- Constant Field Values
FILE_TYPE
public static final String FILE_TYPE
- See Also:
- Constant Field Values
CLASS_TYPE
public static final String CLASS_TYPE
- See Also:
- Constant Field Values
MCREvent
public MCREvent(String objType,
String evtType)
- Creates a new event object of the given object type (object, file) and
event type (create, update, delete)
getObjectType
public String getObjectType()
- Returns the object type of this event
- Returns:
- the object type of this event
getEventType
public String getEventType()
- Returns the event type of this event
- Returns:
- the event type of this event