Package org.mycore.common.events
Class MCREvent
java.lang.Object
org.mycore.common.events.MCREvent
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 Lützenkirchen
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Pre-defined event types *static enum
Pre-defined event objects * -
Field Summary
-
Constructor Summary
ConstructorDescriptionMCREvent
(MCREvent.ObjectType objType, MCREvent.EventType evtType) Creates a new event object of the given object type (object, file) and event type (create, update, delete) -
Method Summary
Modifier and TypeMethodDescriptionentrySet()
return the entries of the event data (1x called in wfc.mail.MCRMailEventhandler)returns an object from event dataReturns the event type of this eventReturns the object type of this eventvoid
adds an object to the event data
-
Field Details
-
PATH_KEY
- See Also:
-
FILEATTR_KEY
- See Also:
-
OBJECT_KEY
- See Also:
-
OBJECT_OLD_KEY
- See Also:
-
DERIVATE_KEY
- See Also:
-
DERIVATE_OLD_KEY
- See Also:
-
USER_KEY
- See Also:
-
USER_OLD_KEY
- See Also:
-
CLASS_KEY
- See Also:
-
CLASS_OLD_KEY
- See Also:
-
-
Constructor Details
-
MCREvent
Creates a new event object of the given object type (object, file) and event type (create, update, delete)
-
-
Method Details
-
getObjectType
Returns the object type of this event- Returns:
- the object type of this event
-
getEventType
Returns the event type of this event- Returns:
- the event type of this event
-
get
returns an object from event data- Parameters:
key
- - the object key- Returns:
- an object from event data
-
put
adds an object to the event data- Parameters:
key
- - the key for the objectvalue
- - the object itself
-
entrySet
return the entries of the event data (1x called in wfc.mail.MCRMailEventhandler)- Returns:
- the entrySet of the the data of the event
-