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
A persistence search object
- Author:
- Apache Directory Project
-
Field Summary
Fields inherited from interface PersistentSearch
CHANGE_TYPES_MAX, CHANGE_TYPES_MIN, OID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddisableNotification(ChangeType changeType) Unsets the notification for a given changeTypevoidenableNotification(ChangeType changeType) Sets the notification for a given changeTypebooleanintinthashCode()booleanbooleanisNotificationEnabled(ChangeType changeType) For each changeType, tells if the notification is enabledbooleanvoidsetChangesOnly(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 flagtoString()Return a String representing this PSearchControl.Methods inherited from class AbstractControl
getOid, isCritical, setCriticalMethods inherited from interface Control
getOid, isCritical, setCritical
-
Constructor Details
-
PersistentSearchImpl
public PersistentSearchImpl()Default constructor
-
-
Method Details
-
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:
trueif 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:
trueif 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
For each changeType, tells if the notification is enabled- Specified by:
isNotificationEnabledin interfacePersistentSearch- Parameters:
changeType- The ChnageType we are interested in- Returns:
trueif the notification is set for this ChangeType
-
enableNotification
Sets the notification for a given changeType- Specified by:
enableNotificationin interfacePersistentSearch- Parameters:
changeType- The chnageType we want some notification to be set
-
disableNotification
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:
-
equals
- Overrides:
equalsin classAbstractControl- See Also:
-
toString
Return a String representing this PSearchControl.- Overrides:
toStringin classAbstractControl
-