An event may be a method event or a state-change event.
If this is a method event then
Event.getType will return the constant Event.METHOD_EVENT.
If this is a state-change event then
Event.getType will return one of the other
int constants defined in this interface.
For method events further information about the particular method
which caused the event can be acquired through
Event.getMethod and
Event.getMethodInfo .
Returns the identifier associated with this event or null
if this event has no associated identifier. The meaning of the associated
identifier depends upon the type of the event.
the identifier associated with this event or nullif this event has no associated identifier. throws: RepositoryException - if an error occurs. since: JCR 2.0
If this is a method event, returns a Map holding the parameters passed to the method
that caused this event. The parameters are held in the Map as name/value pairs where
the name is the string used in this Javadoc to identify the parameter, and the value is the
parameter passed. If the parameter is a primitive type then it is converted to its corresponding
Java reference type (that is, an Object).
Map throws: RepositoryException -
Returns the absolute path associated with this event. The meaning of the
associated path depends upon the type of the event.
the absolute path associated with this event. throws: RepositoryException - if an error occurs.
Returns the user ID connected with this event. This is the string returned
by
javax.jcr.Session.getUserID of the session that caused the event.
a String. throws: RepositoryException - if an error occurs.