|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.spi.commons.EventImpl
public class EventImpl
EventImpl
implements a serializable SPI
Event
.
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 | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EventImpl(int type, Path path, ItemId itemId, NodeId parentId, Name primaryNodeTypeName, Name[] mixinTypeNames, String userId)
public EventImpl(int type, Path path, ItemId itemId, NodeId parentId, Name primaryNodeTypeName, Name[] mixinTypeNames, String userId, String userData, long timestamp, Map<Name,QValue> info)
Method Detail |
---|
public int getType()
Event.NODE_ADDED
Event.NODE_REMOVED
Event.PROPERTY_ADDED
Event.PROPERTY_REMOVED
Event.PROPERTY_CHANGED
Event.NODE_MOVED
Event.PERSIST
getType
in interface Event
public Path getPath()
getPath
in interface Event
public ItemId getItemId()
getItemId
in interface Event
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()
getUserID
in interface Event
String
.public Map<Name,QValue> getInfo() throws RepositoryException
getInfo
in interface Event
Map
containing parameter information.
RepositoryException
- if an error occurs.Event.getInfo()
public String getUserData()
getUserData
in interface Event
Event.getUserData()
public long getDate() throws RepositoryException
getDate
in interface Event
RepositoryException
- if an error occurs.Event.getDate()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |