public final class EventImpl extends Object implements JackrabbitEvent, AdditionalEventInfo, javax.jcr.observation.Event
Event and
the JackrabbitEvent interface.| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Returns
true if this Event is equal to another
object. |
NodeId |
getChildId()
Returns the id of a child node operation.
|
long |
getDate() |
String |
getIdentifier() |
Map<String,String> |
getInfo() |
Set<Name> |
getMixinTypeNames() |
NodeId |
getParentId()
Returns the uuid of the parent node.
|
String |
getPath() |
Name |
getPrimaryNodeTypeName() |
Path |
getQPath()
Returns the
Path of this event. |
Object |
getSessionAttribute(String name) |
int |
getType() |
String |
getUserData() |
String |
getUserID() |
int |
hashCode() |
boolean |
isExternal()
Return a flag indicating whether this is an externally generated event.
|
boolean |
isShareableChildNode()
Returns a flag indicating whether the child node of this event is a
shareable node.
|
String |
toString()
Returns a String representation of this
Event. |
public int getType()
getType in interface javax.jcr.observation.Eventpublic String getPath() throws javax.jcr.RepositoryException
getPath in interface javax.jcr.observation.Eventjavax.jcr.RepositoryExceptionpublic String getUserID()
getUserID in interface javax.jcr.observation.Eventpublic long getDate()
getDate in interface javax.jcr.observation.Eventpublic String getUserData()
getUserData in interface javax.jcr.observation.Eventpublic String getIdentifier() throws javax.jcr.RepositoryException
getIdentifier in interface javax.jcr.observation.Eventjavax.jcr.RepositoryExceptionpublic Map<String,String> getInfo() throws javax.jcr.RepositoryException
getInfo in interface javax.jcr.observation.Eventjavax.jcr.RepositoryExceptionpublic Path getQPath() throws javax.jcr.RepositoryException
Path of this event.null when no path is associated with the eventjavax.jcr.RepositoryException - if the path can't be constructedpublic NodeId getParentId()
public NodeId getChildId()
Event was generated for a property
operation this method returns null.public boolean isShareableChildNode()
true for a shareable child node, false
otherwise.public boolean isExternal()
isExternal in interface JackrabbitEventtrue if this is an external event;
false otherwiseJackrabbitEvent.isExternal()public Name getPrimaryNodeTypeName()
getPrimaryNodeTypeName in interface AdditionalEventInfoAdditionalEventInfo.getPrimaryNodeTypeName()public Set<Name> getMixinTypeNames()
getMixinTypeNames in interface AdditionalEventInfoAdditionalEventInfo.getMixinTypeNames()public Object getSessionAttribute(String name)
getSessionAttribute in interface AdditionalEventInfopublic String toString()
Event.public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
true if this Event is equal to another
object.
Two Event instances are equal if their respective
EventState instances are equal and both Event
instances are intended for the same Session that registerd
the EventListener.
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.