org.mycore.common.events
Class MCREvent

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<String,Object>
          extended by 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

Field Summary
static String CLASS_TYPE
           
static String CREATE_EVENT
          Pre-defined event types *
static String DELETE_EVENT
           
static String DERIVATE_TYPE
           
static String FILE_TYPE
           
static String OBJECT_TYPE
           
static String REPAIR_EVENT
           
static String UPDATE_EVENT
           
 
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)
 
Method Summary
 String getEventType()
          Returns the event type of this event
 String getObjectType()
          Returns the object type of this event
 
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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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)

Method Detail

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