public abstract class EventUtil
extends java.lang.Object
EventConstants...| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
EVENT_ALL
String array listing the xml local names of all type of jcr events.
|
static java.lang.String |
EVENT_NODEADDED
Element representing the 'nodeadded' event type.
|
static java.lang.String |
EVENT_NODEMOVED
Element representing the 'nodemoved' event type.
|
static java.lang.String |
EVENT_NODEREMOVED
Element representing the 'noderemoved' event type.
|
static java.lang.String |
EVENT_PERSIST
Element representing the 'persist' event type.
|
static java.lang.String |
EVENT_PROPERTYADDED
Element representing the 'propertyadded' event type.
|
static java.lang.String |
EVENT_PROPERTYCHANGED
Element representing the 'propertychanged' event type.
|
static java.lang.String |
EVENT_PROPERTYREMOVED
Element representing the 'propertyremoved' event type.
|
| Constructor and Description |
|---|
EventUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getEventName(int jcrEventType)
Static utility method to retrieve a String representation of the type
defined by a
JCR event. |
static int |
getJcrEventType(java.lang.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
javax.jcr.observation.Event. |
static boolean |
isValidEventName(java.lang.String eventName)
Tests if the specified eventName can be mapped to a JCR event type.
|
public static final java.lang.String EVENT_NODEADDED
javax.jcr.observation.Event#NODE_ADDED,
Constant Field Valuespublic static final java.lang.String EVENT_NODEREMOVED
javax.jcr.observation.Event#NODE_REMOVED,
Constant Field Valuespublic static final java.lang.String EVENT_PROPERTYADDED
javax.jcr.observation.Event#PROPERTY_ADDED,
Constant Field Valuespublic static final java.lang.String EVENT_PROPERTYREMOVED
javax.jcr.observation.Event#PROPERTY_REMOVED,
Constant Field Valuespublic static final java.lang.String EVENT_PROPERTYCHANGED
javax.jcr.observation.Event#PROPERTY_CHANGED,
Constant Field Valuespublic static final java.lang.String EVENT_NODEMOVED
javax.jcr.observation.Event#NODE_MOVED,
Constant Field Valuespublic static final java.lang.String EVENT_PERSIST
javax.jcr.observation.Event#PERSIST,
Constant Field Valuespublic static final java.lang.String[] EVENT_ALL
public static boolean isValidEventName(java.lang.String eventName)
eventName - public static int getJcrEventType(java.lang.String eventName)
EventType
as present in the Xml body into the corresponding JCR event constant defined by
javax.jcr.observation.Event.eventName - Event or null.java.lang.IllegalArgumentException - if the specified evenName is invalid.public static java.lang.String getEventName(int jcrEventType)
JCR event.jcrEventType - java.lang.IllegalArgumentException - if the given int does not represent a
valid type constants as defined by Event.Event#NODE_ADDEDEvent#NODE_REMOVEDEvent#PROPERTY_ADDEDEvent#PROPERTY_REMOVEDEvent#PROPERTY_CHANGEDEvent#NODE_MOVEDEvent#PERSIST"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"