|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.observation.EventState
public class EventState
The EventState class encapsulates the session
independent state of an Event.
| Method Summary | |
|---|---|
static EventState |
childNodeAdded(NodeId parentId,
Path parentPath,
NodeId childId,
Path.Element childPath,
Name nodeType,
java.util.Set mixins,
javax.jcr.Session session)
Creates a new Event of type
Event.NODE_ADDED. |
static EventState |
childNodeAdded(NodeId parentId,
Path parentPath,
NodeId childId,
Path.Element childPath,
Name nodeType,
java.util.Set mixins,
javax.jcr.Session session,
boolean external)
Creates a new Event of type
Event.NODE_ADDED. |
static EventState |
childNodeRemoved(NodeId parentId,
Path parentPath,
NodeId childId,
Path.Element childPath,
Name nodeType,
java.util.Set mixins,
javax.jcr.Session session)
Creates a new Event of type
Event.NODE_REMOVED. |
static EventState |
childNodeRemoved(NodeId parentId,
Path parentPath,
NodeId childId,
Path.Element childPath,
Name nodeType,
java.util.Set mixins,
javax.jcr.Session session,
boolean external)
Creates a new Event of type
Event.NODE_REMOVED. |
boolean |
equals(java.lang.Object obj)
Returns true if this EventState is equal to
another object. |
NodeId |
getChildId()
Returns the Id of a child node operation. |
Path.Element |
getChildRelPath()
Returns the relative Path of the child
Item associated with this event. |
java.util.Set |
getMixinNames()
Returns a set of Names which are the names of the mixins
assigned to the parent node associated with this event. |
Name |
getNodeType()
Returns the node type of the parent node associated with this event. |
java.util.Set |
getNodeTypes(NodeTypeManagerImpl ntMgr)
Returns the Set of NodeTypes
assigned to the parent node associated with this event. |
NodeId |
getParentId()
Returns the uuid of the parent node. |
Path |
getParentPath()
Returns the path of the parent node. |
int |
getType()
|
java.lang.String |
getUserId()
|
int |
hashCode()
Returns a hashCode for this EventState. |
static EventState |
propertyAdded(NodeId parentId,
Path parentPath,
Path.Element childPath,
Name nodeType,
java.util.Set mixins,
javax.jcr.Session session)
Creates a new Event of type
Event.PROPERTY_ADDED. |
static EventState |
propertyAdded(NodeId parentId,
Path parentPath,
Path.Element childPath,
Name nodeType,
java.util.Set mixins,
javax.jcr.Session session,
boolean external)
Creates a new Event of type
Event.PROPERTY_ADDED. |
static EventState |
propertyChanged(NodeId parentId,
Path parentPath,
Path.Element childPath,
Name nodeType,
java.util.Set mixins,
javax.jcr.Session session)
Creates a new Event of type
Event.PROPERTY_CHANGED. |
static EventState |
propertyChanged(NodeId parentId,
Path parentPath,
Path.Element childPath,
Name nodeType,
java.util.Set mixins,
javax.jcr.Session session,
boolean external)
Creates a new Event of type
Event.PROPERTY_CHANGED. |
static EventState |
propertyRemoved(NodeId parentId,
Path parentPath,
Path.Element childPath,
Name nodeType,
java.util.Set mixins,
javax.jcr.Session session)
Creates a new Event of type
Event.PROPERTY_REMOVED. |
static EventState |
propertyRemoved(NodeId parentId,
Path parentPath,
Path.Element childPath,
Name nodeType,
java.util.Set mixins,
javax.jcr.Session session,
boolean external)
Creates a new Event of type
Event.PROPERTY_REMOVED. |
java.lang.String |
toString()
Returns a String representation of this EventState. |
static java.lang.String |
valueOf(int eventType)
Returns a String representation of eventType. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static EventState childNodeAdded(NodeId parentId,
Path parentPath,
NodeId childId,
Path.Element childPath,
Name nodeType,
java.util.Set mixins,
javax.jcr.Session session)
Event of type
Event.NODE_ADDED.
parentId - the id of the parent node associated with
this EventState.parentPath - the path of the parent node associated with
this EventState.childId - the id of the child node associated with this event.childPath - the relative path of the child node that was added.nodeType - the node type of the parent node.mixins - mixins assigned to the parent node.session - the session that added the node.
EventState instance.
public static EventState childNodeAdded(NodeId parentId,
Path parentPath,
NodeId childId,
Path.Element childPath,
Name nodeType,
java.util.Set mixins,
javax.jcr.Session session,
boolean external)
Event of type
Event.NODE_ADDED.
parentId - the id of the parent node associated with
this EventState.parentPath - the path of the parent node associated with
this EventState.childId - the id of the child node associated with this event.childPath - the relative path of the child node that was added.nodeType - the node type of the parent node.mixins - mixins assigned to the parent node.session - the session that added the node.external - flag indicating whether this is an external event
EventState instance.
public static EventState childNodeRemoved(NodeId parentId,
Path parentPath,
NodeId childId,
Path.Element childPath,
Name nodeType,
java.util.Set mixins,
javax.jcr.Session session)
Event of type
Event.NODE_REMOVED.
parentId - the id of the parent node associated with
this EventState.parentPath - the path of the parent node associated with
this EventState.childId - the id of the child node associated with this event.childPath - the relative path of the child node that was removed.nodeType - the node type of the parent node.mixins - mixins assigned to the parent node.session - the session that removed the node.
EventState instance.
public static EventState childNodeRemoved(NodeId parentId,
Path parentPath,
NodeId childId,
Path.Element childPath,
Name nodeType,
java.util.Set mixins,
javax.jcr.Session session,
boolean external)
Event of type
Event.NODE_REMOVED.
parentId - the id of the parent node associated with
this EventState.parentPath - the path of the parent node associated with
this EventState.childId - the id of the child node associated with this event.childPath - the relative path of the child node that was removed.nodeType - the node type of the parent node.mixins - mixins assigned to the parent node.session - the session that removed the node.external - flag indicating whether this is an external event
EventState instance.
public static EventState propertyAdded(NodeId parentId,
Path parentPath,
Path.Element childPath,
Name nodeType,
java.util.Set mixins,
javax.jcr.Session session)
Event of type
Event.PROPERTY_ADDED.
parentId - the id of the parent node associated with
this EventState.parentPath - the path of the parent node associated with
this EventState.childPath - the relative path of the property that was added.nodeType - the node type of the parent node.mixins - mixins assigned to the parent node.session - the session that added the property.
EventState instance.
public static EventState propertyAdded(NodeId parentId,
Path parentPath,
Path.Element childPath,
Name nodeType,
java.util.Set mixins,
javax.jcr.Session session,
boolean external)
Event of type
Event.PROPERTY_ADDED.
parentId - the id of the parent node associated with
this EventState.parentPath - the path of the parent node associated with
this EventState.childPath - the relative path of the property that was added.nodeType - the node type of the parent node.mixins - mixins assigned to the parent node.session - the session that added the property.external - flag indicating whether this is an external event
EventState instance.
public static EventState propertyRemoved(NodeId parentId,
Path parentPath,
Path.Element childPath,
Name nodeType,
java.util.Set mixins,
javax.jcr.Session session)
Event of type
Event.PROPERTY_REMOVED.
parentId - the id of the parent node associated with
this EventState.parentPath - the path of the parent node associated with
this EventState.childPath - the relative path of the property that was removed.nodeType - the node type of the parent node.mixins - mixins assigned to the parent node.session - the session that removed the property.
EventState instance.
public static EventState propertyRemoved(NodeId parentId,
Path parentPath,
Path.Element childPath,
Name nodeType,
java.util.Set mixins,
javax.jcr.Session session,
boolean external)
Event of type
Event.PROPERTY_REMOVED.
parentId - the id of the parent node associated with
this EventState.parentPath - the path of the parent node associated with
this EventState.childPath - the relative path of the property that was removed.nodeType - the node type of the parent node.mixins - mixins assigned to the parent node.session - the session that removed the property.external - flag indicating whether this is an external event
EventState instance.
public static EventState propertyChanged(NodeId parentId,
Path parentPath,
Path.Element childPath,
Name nodeType,
java.util.Set mixins,
javax.jcr.Session session)
Event of type
Event.PROPERTY_CHANGED.
parentId - the id of the parent node associated with
this EventState.parentPath - the path of the parent node associated with
this EventState.childPath - the relative path of the property that changed.nodeType - the node type of the parent node.mixins - mixins assigned to the parent node.session - the session that changed the property.
EventState instance.
public static EventState propertyChanged(NodeId parentId,
Path parentPath,
Path.Element childPath,
Name nodeType,
java.util.Set mixins,
javax.jcr.Session session,
boolean external)
Event of type
Event.PROPERTY_CHANGED.
parentId - the id of the parent node associated with
this EventState.parentPath - the path of the parent node associated with
this EventState.childPath - the relative path of the property that changed.nodeType - the node type of the parent node.mixins - mixins assigned to the parent node.session - the session that changed the property.external - flag indicating whether this is an external event
EventState instance.public int getType()
public NodeId getParentId()
public Path getParentPath()
public NodeId getChildId()
EventState was generated for a property
operation this method returns null.
public Path.Element getChildRelPath()
Path of the child
Item associated with this event.
Path.Element associated with this event.public Name getNodeType()
public java.util.Set getMixinNames()
Names which are the names of the mixins
assigned to the parent node associated with this event.
Names.public java.util.Set getNodeTypes(NodeTypeManagerImpl ntMgr)
Set of NodeTypes
assigned to the parent node associated with this event. This
Set includes the primary type as well as all the mixin types
assigned to the parent node.
Set of NodeTypes.public java.lang.String getUserId()
public java.lang.String toString()
EventState.
toString in class java.lang.ObjectEventState.public int hashCode()
EventState.
hashCode in class java.lang.ObjectEventState.public boolean equals(java.lang.Object obj)
true if this EventState is equal to
another object.
equals in class java.lang.Objectobj - the reference object with which to compare.
true if object obj is equal to this
EventState; false otherwise.public static java.lang.String valueOf(int eventType)
eventType.
eventType - an event type defined by Event.
eventType.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||