public abstract class EventUtil extends Object
EventConstants...| Modifier and Type | Field and Description |
|---|---|
static String[] |
EVENT_ALL
String array listing the xml local names of all type of jcr events.
|
static String |
EVENT_NODEADDED
Element representing the 'nodeadded' event type.
|
static String |
EVENT_NODEMOVED
Element representing the 'nodemoved' event type.
|
static String |
EVENT_NODEREMOVED
Element representing the 'noderemoved' event type.
|
static String |
EVENT_PERSIST
Element representing the 'persist' event type.
|
static String |
EVENT_PROPERTYADDED
Element representing the 'propertyadded' event type.
|
static String |
EVENT_PROPERTYCHANGED
Element representing the 'propertychanged' event type.
|
static String |
EVENT_PROPERTYREMOVED
Element representing the 'propertyremoved' event type.
|
| Constructor and Description |
|---|
EventUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getEventName(int jcrEventType)
Static utility method to retrieve a String representation of the type
defined by a
JCR event. |
static int |
getJcrEventType(String eventName)
Static utility method to convert the localName of a
EventType
as present in the Xml body into the corresponding JCR event constant defined by
Event. |
static boolean |
isValidEventName(String eventName)
Tests if the specified eventName can be mapped to a JCR event type.
|
public static final String EVENT_NODEADDED
Event.NODE_ADDED,
Constant Field Valuespublic static final String EVENT_NODEREMOVED
Event.NODE_REMOVED,
Constant Field Valuespublic static final String EVENT_PROPERTYADDED
Event.PROPERTY_ADDED,
Constant Field Valuespublic static final String EVENT_PROPERTYREMOVED
Event.PROPERTY_REMOVED,
Constant Field Valuespublic static final String EVENT_PROPERTYCHANGED
Event.PROPERTY_CHANGED,
Constant Field Valuespublic static final String EVENT_NODEMOVED
Event.NODE_MOVED,
Constant Field Valuespublic static final String EVENT_PERSIST
Event.PERSIST,
Constant Field Valuespublic static final String[] EVENT_ALL
public static boolean isValidEventName(String eventName)
eventName - public static int getJcrEventType(String eventName)
EventType
as present in the Xml body into the corresponding JCR event constant defined by
Event.eventName - Event or null.IllegalArgumentException - if the specified evenName is invalid.public static String getEventName(int jcrEventType)
JCR event.jcrEventType - IllegalArgumentException - if the given int does not represent a
valid type constants as defined by Event.Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.