public class EventImpl extends java.lang.Object implements Event, java.io.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,
java.lang.String userId)
Deprecated.
|
EventImpl(int type,
Path path,
ItemId itemId,
NodeId parentId,
Name primaryNodeTypeName,
Name[] mixinTypeNames,
java.lang.String userId,
java.lang.String userData,
long timestamp,
java.util.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.
|
java.util.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.
|
java.lang.String |
getUserData()
Returns the user data.
|
java.lang.String |
getUserID()
Returns the user ID connected with this event.
|
java.lang.String |
toString() |
public EventImpl(int type, Path path, ItemId itemId, NodeId parentId, Name primaryNodeTypeName, Name[] mixinTypeNames, java.lang.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
javax.jcr.observation.ObservationManager#addEventListener
public Name[] getMixinTypeNames()
getMixinTypeNames
in interface Event
javax.jcr.observation.ObservationManager#addEventListener
public java.lang.String getUserID()
public java.util.Map<Name,QValue> getInfo() throws RepositoryException
public java.lang.String getUserData()
getUserData
in interface Event
javax.jcr.observation.Event#getUserData()
public long getDate() throws RepositoryException
public java.lang.String toString()
toString
in class java.lang.Object
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"