Class 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

      Constructors 
      Constructor Description
      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.
    • 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