Class EventImpl
java.lang.Object
org.apache.jackrabbit.spi.commons.EventImpl
- All Implemented Interfaces:
Serializable,Event
EventImpl implements a serializable SPI
Event.- See Also:
-
Field Summary
Fields inherited from interface org.apache.jackrabbit.spi.Event
ALL_TYPES, NODE_ADDED, NODE_MOVED, NODE_REMOVED, PERSIST, PROPERTY_ADDED, PROPERTY_CHANGED, PROPERTY_REMOVED -
Constructor Summary
ConstructorsConstructorDescriptionEventImpl(int type, Path path, ItemId itemId, NodeId parentId, Name primaryNodeTypeName, Name[] mixinTypeNames, String userId) Deprecated.EventImpl(int type, Path path, ItemId itemId, NodeId parentId, Name primaryNodeTypeName, Name[] mixinTypeNames, String userId, String userData, long timestamp, Map<Name, QValue> info) Creates a new serializable event. -
Method Summary
Modifier and TypeMethodDescriptionlonggetDate()Returns the date when the change was persisted that caused this event.getInfo()Returns the information map associated with this event.Name[]getPath()intgetType()Returns the type of this event: a constant defined by this interface.Returns the user data.Returns the user ID connected with this event.toString()
-
Constructor Details
-
EventImpl
public EventImpl(int type, Path path, ItemId itemId, NodeId parentId, Name primaryNodeTypeName, Name[] mixinTypeNames, String userId) Deprecated.Creates a new serializable event. -
EventImpl
public EventImpl(int type, Path path, ItemId itemId, NodeId parentId, Name primaryNodeTypeName, Name[] mixinTypeNames, String userId, String userData, long timestamp, Map<Name, QValue> info) Creates a new serializable event.
-
-
Method Details
-
getType
public int getType()Returns the type of this event: a constant defined by this interface. One of: -
getPath
-
getItemId
-
getParentId
- Specified by:
getParentIdin interfaceEvent- Returns:
- the id of the parent node of the affected item.
-
getPrimaryNodeTypeName
- Specified by:
getPrimaryNodeTypeNamein interfaceEvent- Returns:
- the name of the primary node type of the 'associated' node of this event.
- See Also:
-
getMixinTypeNames
- Specified by:
getMixinTypeNamesin interfaceEvent- Returns:
- the names of the mixin types of the 'associated' node of this event.
- See Also:
-
getUserID
Returns the user ID connected with this event. This is the string returned by getUserID of the session that caused the event. -
getInfo
Returns the information map associated with this event.- Specified by:
getInfoin interfaceEvent- Returns:
- A
Mapcontaining parameter information. - Throws:
RepositoryException- if an error occurs.- See Also:
-
getUserData
Returns the user data.- Specified by:
getUserDatain interfaceEvent- Returns:
- the user data
- See Also:
-
getDate
Returns the date when the change was persisted that caused this event.- Specified by:
getDatein interfaceEvent- Returns:
- the date when the change was persisted that caused this event.
- Throws:
RepositoryException- if an error occurs.- See Also:
-
toString
-