public interface Event extends Event
Event
interface allowing custom ModeShape events.Modifier and Type | Interface and Description |
---|---|
static interface |
Event.Sequencing
Interface which contains the constants for sequencing events.
|
Modifier and Type | Field and Description |
---|---|
static int |
ALL_EVENTS
|
NODE_ADDED, NODE_MOVED, NODE_REMOVED, PERSIST, PROPERTY_ADDED, PROPERTY_CHANGED, PROPERTY_REMOVED
Modifier and Type | Method and Description |
---|---|
NodeType[] |
getMixinNodeTypes()
If this
Event is of type NODE_ADDED , NODE_REMOVED or NODE_MOVED
then this method returns the declared mixin node types of the node at (or formerly at) the
path returned by getPath() . |
NodeType |
getPrimaryNodeType()
If this
Event is of type NODE_ADDED , NODE_REMOVED or NODE_MOVED
then this method returns the declared primary node type of the node at (or formerly at) the
path returned by getPath() . |
getDate, getIdentifier, getInfo, getPath, getType, getUserData, getUserID
static final int ALL_EVENTS
Event
together with all the custom
ModeShape events: Event
NodeType getPrimaryNodeType() throws RepositoryException
Event
is of type NODE_ADDED
, NODE_REMOVED
or NODE_MOVED
then this method returns the declared primary node type of the node at (or formerly at) the
path returned by getPath()
. If this Event
is of type PROPERTY_ADDED
, PROPERTY_REMOVED
or PROPERTY_CHANGED
then this method returns the declared primary node type of the parent node of the property affected.NodeType
object.RepositoryException
- if an error occurs.NodeType[] getMixinNodeTypes() throws RepositoryException
Event
is of type NODE_ADDED
, NODE_REMOVED
or NODE_MOVED
then this method returns the declared mixin node types of the node at (or formerly at) the
path returned by getPath()
. If this Event
is of type PROPERTY_ADDED
, PROPERTY_REMOVED
or PROPERTY_CHANGED
then this method returns the declared mixin node types of the parent node of the property affected.NodeType
objects.RepositoryException
- if an error occurs.Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.