org.apache.jackrabbit.spi.commons
Class EventImpl

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

public class EventImpl
extends Object
implements org.apache.jackrabbit.spi.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, org.apache.jackrabbit.spi.Path path, org.apache.jackrabbit.spi.ItemId itemId, org.apache.jackrabbit.spi.NodeId parentId, org.apache.jackrabbit.spi.Name primaryNodeTypeName, org.apache.jackrabbit.spi.Name[] mixinTypeNames, String userId)
          Deprecated.  
EventImpl(int type, org.apache.jackrabbit.spi.Path path, org.apache.jackrabbit.spi.ItemId itemId, org.apache.jackrabbit.spi.NodeId parentId, org.apache.jackrabbit.spi.Name primaryNodeTypeName, org.apache.jackrabbit.spi.Name[] mixinTypeNames, String userId, String userData, long timestamp, Map<org.apache.jackrabbit.spi.Name,org.apache.jackrabbit.spi.QValue> info)
          Creates a new serializable event.
 
Method Summary
 long getDate()
          
 Map<org.apache.jackrabbit.spi.Name,org.apache.jackrabbit.spi.QValue> getInfo()
          
 org.apache.jackrabbit.spi.ItemId getItemId()
          
 org.apache.jackrabbit.spi.Name[] getMixinTypeNames()
          
 org.apache.jackrabbit.spi.NodeId getParentId()
          
 org.apache.jackrabbit.spi.Path getPath()
          
 org.apache.jackrabbit.spi.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,
                 org.apache.jackrabbit.spi.Path path,
                 org.apache.jackrabbit.spi.ItemId itemId,
                 org.apache.jackrabbit.spi.NodeId parentId,
                 org.apache.jackrabbit.spi.Name primaryNodeTypeName,
                 org.apache.jackrabbit.spi.Name[] mixinTypeNames,
                 String userId)
Deprecated. 

Creates a new serializable event.


EventImpl

public EventImpl(int type,
                 org.apache.jackrabbit.spi.Path path,
                 org.apache.jackrabbit.spi.ItemId itemId,
                 org.apache.jackrabbit.spi.NodeId parentId,
                 org.apache.jackrabbit.spi.Name primaryNodeTypeName,
                 org.apache.jackrabbit.spi.Name[] mixinTypeNames,
                 String userId,
                 String userData,
                 long timestamp,
                 Map<org.apache.jackrabbit.spi.Name,org.apache.jackrabbit.spi.QValue> info)
Creates a new serializable event.

Method Detail

getType

public int getType()

Specified by:
getType in interface org.apache.jackrabbit.spi.Event

getPath

public org.apache.jackrabbit.spi.Path getPath()

Specified by:
getPath in interface org.apache.jackrabbit.spi.Event

getItemId

public org.apache.jackrabbit.spi.ItemId getItemId()

Specified by:
getItemId in interface org.apache.jackrabbit.spi.Event

getParentId

public org.apache.jackrabbit.spi.NodeId getParentId()

Specified by:
getParentId in interface org.apache.jackrabbit.spi.Event

getPrimaryNodeTypeName

public org.apache.jackrabbit.spi.Name getPrimaryNodeTypeName()

Specified by:
getPrimaryNodeTypeName in interface org.apache.jackrabbit.spi.Event

getMixinTypeNames

public org.apache.jackrabbit.spi.Name[] getMixinTypeNames()

Specified by:
getMixinTypeNames in interface org.apache.jackrabbit.spi.Event

getUserID

public String getUserID()

Specified by:
getUserID in interface org.apache.jackrabbit.spi.Event

getInfo

public Map<org.apache.jackrabbit.spi.Name,org.apache.jackrabbit.spi.QValue> getInfo()
                                                                             throws RepositoryException

Specified by:
getInfo in interface org.apache.jackrabbit.spi.Event
Throws:
RepositoryException

getUserData

public String getUserData()

Specified by:
getUserData in interface org.apache.jackrabbit.spi.Event

getDate

public long getDate()
             throws RepositoryException

Specified by:
getDate in interface org.apache.jackrabbit.spi.Event
Throws:
RepositoryException

toString

public String toString()
Overrides:
toString in class Object


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