|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Event
Event is a preliminary interface that contains the new methods
introduce in JSR 283.
| Field Summary | |
|---|---|
static int |
NODE_MOVED
Generated on persist when a node is moved. |
static int |
PERSIST
If event bundling is supported, this event is used to indicate a bundle boundary within the event journal. |
| Fields inherited from interface javax.jcr.observation.Event |
|---|
NODE_ADDED, NODE_REMOVED, PROPERTY_ADDED, PROPERTY_CHANGED, PROPERTY_REMOVED |
| Method Summary | |
|---|---|
long |
getDate()
Returns the date when the change was persisted that caused this event. |
String |
getIdentifier()
Returns the identifier associated with this event or null
if this event has no associated identifier. |
Map |
getInfo()
Returns the information map associated with this event. |
String |
getUserData()
Returns the user data set through ObservationManager.setUserData()
on the ObservationManager bound to the Session that caused
the event. |
| Methods inherited from interface javax.jcr.observation.Event |
|---|
getPath, getType, getUserID |
| Field Detail |
|---|
static final int NODE_MOVED
Event.getPath() returns the absolute path of the destination of the move.getIdentifier() returns the identifier of the moved node.
getInfo() If the method that caused this event was
a Session.move or Workspace.move
then the returned Map has keys srcAbsPath and destAbsPath
with values corresponding to the parameters passed to the move method.
If the method that caused this event was a Node.orderBefore
then the returned Map has keys srcChildRelPath and destChildRelPath
with values corresponding to the parameters passed to the orderBefore method.
static final int PERSIST
Event.getPath() returns null.getIdentifier() returns null.getInfo() returns an empty Map object.
| Method Detail |
|---|
String getIdentifier()
throws RepositoryException
null
if this event has no associated identifier. The meaning of the associated
identifier depends upon the type of the event.
See event type constants above.
null.
RepositoryException - if an error occurs.
Map getInfo()
throws RepositoryException
Map containing parameter information
for instances of a NODE_MOVED event.
RepositoryException - if an error occurs.
String getUserData()
throws RepositoryException
ObservationManager.setUserData()
on the ObservationManager bound to the Session that caused
the event.
RepositoryException - if an error occurs.
long getDate()
throws RepositoryException
RepositoryException - if an error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||