Class PersistentSearchImpl
- java.lang.Object
-
- org.apache.directory.api.ldap.model.message.controls.AbstractControl
-
- org.apache.directory.api.ldap.model.message.controls.PersistentSearchImpl
-
- All Implemented Interfaces:
Control,PersistentSearch
public class PersistentSearchImpl extends AbstractControl implements PersistentSearch
A persistence search object- Author:
- Apache Directory Project
-
-
Field Summary
-
Fields inherited from interface org.apache.directory.api.ldap.model.message.controls.PersistentSearch
CHANGE_TYPES_MAX, CHANGE_TYPES_MIN, OID
-
-
Constructor Summary
Constructors Constructor Description PersistentSearchImpl()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisableNotification(ChangeType changeType)Unsets the notification for a given changeTypevoidenableNotification(ChangeType changeType)Sets the notification for a given changeTypebooleanequals(Object other)intgetChangeTypes()inthashCode()booleanisChangesOnly()booleanisNotificationEnabled(ChangeType changeType)For each changeType, tells if the notification is enabledbooleanisReturnECs()voidsetChangesOnly(boolean changesOnly)Sets the ChangesOnly flagvoidsetChangeTypes(int changeTypes)Set the changeType value we want to get back ( a combinaison of Add, Delete, Modify and ModifyDN)voidsetReturnECs(boolean returnECs)Sets the return entry changes flagStringtoString()Return a String representing this PSearchControl.-
Methods inherited from class org.apache.directory.api.ldap.model.message.controls.AbstractControl
getOid, isCritical, setCritical
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Control
getOid, isCritical, setCritical
-
-
-
-
Method Detail
-
setChangesOnly
public void setChangesOnly(boolean changesOnly)
Sets the ChangesOnly flag- Specified by:
setChangesOnlyin interfacePersistentSearch- Parameters:
changesOnly- The ChangesOnly flag
-
isChangesOnly
public boolean isChangesOnly()
- Specified by:
isChangesOnlyin interfacePersistentSearch- Returns:
- TRUE if the changesOnly flag is set
-
setReturnECs
public void setReturnECs(boolean returnECs)
Sets the return entry changes flag- Specified by:
setReturnECsin interfacePersistentSearch- Parameters:
returnECs- the return entry changes flag
-
isReturnECs
public boolean isReturnECs()
- Specified by:
isReturnECsin interfacePersistentSearch- Returns:
- TRUE if the return entry changes flag is set
-
setChangeTypes
public void setChangeTypes(int changeTypes)
Set the changeType value we want to get back ( a combinaison of Add, Delete, Modify and ModifyDN)- Specified by:
setChangeTypesin interfacePersistentSearch- Parameters:
changeTypes- The changeType values (Add, Modify, Delete and ModifyDn)
-
getChangeTypes
public int getChangeTypes()
- Specified by:
getChangeTypesin interfacePersistentSearch- Returns:
- The changeTypes value
-
isNotificationEnabled
public boolean isNotificationEnabled(ChangeType changeType)
For each changeType, tells if the notification is enabled- Specified by:
isNotificationEnabledin interfacePersistentSearch- Parameters:
changeType- The ChnageType we are interested in- Returns:
- TRUE if the notification is set for this ChangeType
-
enableNotification
public void enableNotification(ChangeType changeType)
Sets the notification for a given changeType- Specified by:
enableNotificationin interfacePersistentSearch- Parameters:
changeType- The chnageType we want some notification to be set
-
disableNotification
public void disableNotification(ChangeType changeType)
Unsets the notification for a given changeType- Specified by:
disableNotificationin interfacePersistentSearch- Parameters:
changeType- The chnageType we want some notification to be unset
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractControl- See Also:
Object.hashCode()
-
equals
public boolean equals(Object other)
- Overrides:
equalsin classAbstractControl- See Also:
Object.equals(Object)
-
toString
public String toString()
Return a String representing this PSearchControl.- Overrides:
toStringin classAbstractControl
-
-