|
LDAP Classes Implements Java LDAP |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.ldap.LDAPControl com.novell.ldap.controls.LDAPPersistSearchControl
LDAPPersistSearchControl is a Server Control that allows a client to receive notifications from the server of changes to entries within the searches result set. The client can be notified when an entry is added to the result set, when an entry is deleted from the result set, when a DN has been changed or when and attribute value has been changed.
Sample Code: SearchPersist.java
Field Summary | |
static int |
ADD
Change type specifying that you want to track additions of new entries to the directory. |
static int |
ANY
Change type specifying that you want to track any of the above modifications. |
static int |
DELETE
Change type specifying that you want to track removals of entries from the directory. |
static int |
MODDN
Change type specifying that you want to track modifications of the DNs of entries in the directory. |
static int |
MODIFY
Change type specifying that you want to track modifications of entries in the directory. |
Constructor Summary | |
LDAPPersistSearchControl()
The default constructor. |
|
LDAPPersistSearchControl(int changeTypes,
boolean changesOnly,
boolean returnControls,
boolean isCritical)
Constructs an LDAPPersistSearchControl object according to the supplied parameters. |
Method Summary | |
boolean |
getChangesOnly()
getChangesOnly returns true if only changes are to be returned. |
int |
getChangeTypes()
Returns the change types to be monitored as a logical OR of any or all of these values: ADD, DELETE, MODIFY, and/or MODDN. |
boolean |
getReturnControls()
Returns true if entry change controls are to be returned with the search results. |
void |
setChangesOnly(boolean changesOnly)
When set to true, requests that only changes be returned, results from the initial search are not returned. |
void |
setChangeTypes(int changeTypes)
Sets the change types to be monitored. |
void |
setReturnControls(boolean returnControls)
When set to true, requests that entry change controls be returned with the search results. |
java.lang.String |
toString()
Returns a string representation of this class. |
Methods inherited from class com.novell.ldap.LDAPControl |
clone, getID, getValue, isCritical, readDSML, readExternal, register, setValue, writeDSML, writeExternal |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int ADD
public static final int DELETE
public static final int MODIFY
public static final int MODDN
public static final int ANY
Constructor Detail |
public LDAPPersistSearchControl()
public LDAPPersistSearchControl(int changeTypes, boolean changesOnly, boolean returnControls, boolean isCritical)
Constructs an LDAPPersistSearchControl object according to the supplied parameters. The resulting control is used to specify a persistent search.
changeTypes
- the change types to monitor. The bitwise OR of any
of the following values:
changesOnly
- true if you do not want the server to return
all existing entries in the directory that match the search
criteria. (Use this if you just want the changed entries to be
returned.)
returnControls
- true if you want the server to return entry
change controls with each entry in the search results. You need to
return entry change controls to discover what type of change
and other additional information about the change.
isCritical
- true if this control is critical to the search
operation. If true and the server does not support this control,
the server will not perform the search at all.Method Detail |
public int getChangeTypes()
public void setChangeTypes(int changeTypes)
public boolean getReturnControls()
public void setReturnControls(boolean returnControls)
returnControls
- true to return entry change controls.public boolean getChangesOnly()
public void setChangesOnly(boolean changesOnly)
changesOnly
- true to skip results for the initial searchpublic java.lang.String toString()
LDAPControl
toString
in class LDAPControl
|
LDAP Classes Implements Java LDAP |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |