org.apache.jackrabbit.spi.commons
Class EventImpl

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.EventImpl
All Implemented Interfaces:
Serializable, Event

public class EventImpl
extends Object
implements Event, Serializable

EventImpl implements a serializable SPI Event.

See Also:
Serialized Form

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()
          
 Map<Name,QValue> getInfo()
          
 ItemId getItemId()
          
 Name[] getMixinTypeNames()
          
 NodeId getParentId()
          
 Path getPath()
          
 Name getPrimaryNodeTypeName()
          
 int getType()
          
 String getUserData()
          
 String getUserID()
          
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 Detail

getType

public int getType()

Specified by:
getType in interface Event

getPath

public Path getPath()

Specified by:
getPath in interface Event

getItemId

public ItemId getItemId()

Specified by:
getItemId in interface Event

getParentId

public NodeId getParentId()

Specified by:
getParentId in interface Event

getPrimaryNodeTypeName

public Name getPrimaryNodeTypeName()

Specified by:
getPrimaryNodeTypeName in interface Event

getMixinTypeNames

public Name[] getMixinTypeNames()

Specified by:
getMixinTypeNames in interface Event

getUserID

public String getUserID()

Specified by:
getUserID in interface Event

getInfo

public Map<Name,QValue> getInfo()
                         throws RepositoryException

Specified by:
getInfo in interface Event
Throws:
RepositoryException

getUserData

public String getUserData()

Specified by:
getUserData in interface Event

getDate

public long getDate()
             throws RepositoryException

Specified by:
getDate in interface Event
Throws:
RepositoryException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.