public class EventImpl extends Object implements Event, Serializable
EventImpl
implements a serializable SPI
Event
.ALL_TYPES, NODE_ADDED, NODE_MOVED, NODE_REMOVED, PERSIST, PROPERTY_ADDED, PROPERTY_CHANGED, PROPERTY_REMOVED
Constructor and Description |
---|
EventImpl(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.
|
Modifier and Type | Method and Description |
---|---|
long |
getDate()
Returns the date when the change was persisted that caused this event.
|
Map<Name,QValue> |
getInfo()
Returns the information map associated with this event.
|
ItemId |
getItemId() |
Name[] |
getMixinTypeNames() |
NodeId |
getParentId() |
Path |
getPath() |
Name |
getPrimaryNodeTypeName() |
int |
getType()
Returns the type of this event: a constant defined by this interface.
|
String |
getUserData()
Returns the user data.
|
String |
getUserID()
Returns the user ID connected with this event.
|
String |
toString() |
public EventImpl(int type, Path path, ItemId itemId, NodeId parentId, Name primaryNodeTypeName, Name[] mixinTypeNames, String userId)
public int getType()
public Path getPath()
public ItemId getItemId()
public NodeId getParentId()
getParentId
in interface Event
public Name getPrimaryNodeTypeName()
getPrimaryNodeTypeName
in interface Event
ObservationManager.addEventListener(javax.jcr.observation.EventListener, int, java.lang.String, boolean, java.lang.String[], java.lang.String[], boolean)
public Name[] getMixinTypeNames()
getMixinTypeNames
in interface Event
ObservationManager.addEventListener(javax.jcr.observation.EventListener, int, java.lang.String, boolean, java.lang.String[], java.lang.String[], boolean)
public String getUserID()
public Map<Name,QValue> getInfo() throws javax.jcr.RepositoryException
public String getUserData()
getUserData
in interface Event
Event.getUserData()
public long getDate() throws javax.jcr.RepositoryException
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.