public enum EventType extends Enum<EventType>
DirectoryListener
may register for
notification on using the EventService
. Sometimes an entry is
moved and renamed at the same time. These notifications are sent when
either RENAME or MOVE notifications are enabled.Modifier and Type | Field and Description |
---|---|
static int |
ALL_EVENT_TYPES_MASK |
static int |
MOVE_OR_RENAME_MASK |
Modifier and Type | Method and Description |
---|---|
static EventType[] |
getEventTypes(int psearchChangeTypes)
Gets an array of EventTypes from the PSearchControl changeTypes
parameter value.
|
int |
getMask() |
static int |
getMask(EventType... eventTypes) |
static boolean |
isAdd(int mask) |
static boolean |
isDelete(int mask) |
static boolean |
isModify(int mask) |
static boolean |
isMove(int mask) |
static boolean |
isMoveAndRename(int mask) |
static boolean |
isRename(int mask) |
static EventType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EventType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EventType ADD
public static final EventType DELETE
public static final EventType MODIFY
public static final EventType RENAME
public static final EventType MOVE
public static final int ALL_EVENT_TYPES_MASK
public static final int MOVE_OR_RENAME_MASK
public static EventType[] values()
for (EventType c : EventType.values()) System.out.println(c);
public static EventType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getMask()
public static EventType[] getEventTypes(int psearchChangeTypes)
The changeTypes field is the logical OR of one or more of these values:
add (1), delete (2), modify (4), modDN (8). By default this is set to 1 |
2 | 4 | 8 which is the integer value 0x0F or 15.
NOTE: When the changeTypes mask includes a modDN(8) we include both the
RENAME and MOVE EventType objects in the array.psearchChangeTypes
- the value of the changeTypes parameterPersistentSearchControl
public static boolean isAdd(int mask)
public static boolean isDelete(int mask)
public static boolean isModify(int mask)
public static boolean isMove(int mask)
public static boolean isRename(int mask)
public static boolean isMoveAndRename(int mask)
public static int getMask(EventType... eventTypes)
Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.