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 void
disableNotification(ChangeType changeType)
Unsets the notification for a given changeTypevoid
enableNotification(ChangeType changeType)
Sets the notification for a given changeTypeboolean
equals(Object other)
int
getChangeTypes()
int
hashCode()
boolean
isChangesOnly()
boolean
isNotificationEnabled(ChangeType changeType)
For each changeType, tells if the notification is enabledboolean
isReturnECs()
void
setChangesOnly(boolean changesOnly)
Sets the ChangesOnly flagvoid
setChangeTypes(int changeTypes)
Set the changeType value we want to get back ( a combinaison of Add, Delete, Modify and ModifyDN)void
setReturnECs(boolean returnECs)
Sets the return entry changes flagString
toString()
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 interface org.apache.directory.api.ldap.model.message.Control
getOid, isCritical, setCritical
-
-
-
-
Constructor Detail
-
PersistentSearchImpl
public PersistentSearchImpl()
Default constructor
-
-
Method Detail
-
setChangesOnly
public void setChangesOnly(boolean changesOnly)
Sets the ChangesOnly flag- Specified by:
setChangesOnly
in interfacePersistentSearch
- Parameters:
changesOnly
- The ChangesOnly flag
-
isChangesOnly
public boolean isChangesOnly()
- Specified by:
isChangesOnly
in interfacePersistentSearch
- Returns:
- TRUE if the changesOnly flag is set
-
setReturnECs
public void setReturnECs(boolean returnECs)
Sets the return entry changes flag- Specified by:
setReturnECs
in interfacePersistentSearch
- Parameters:
returnECs
- the return entry changes flag
-
isReturnECs
public boolean isReturnECs()
- Specified by:
isReturnECs
in 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:
setChangeTypes
in interfacePersistentSearch
- Parameters:
changeTypes
- The changeType values (Add, Modify, Delete and ModifyDn)
-
getChangeTypes
public int getChangeTypes()
- Specified by:
getChangeTypes
in interfacePersistentSearch
- Returns:
- The changeTypes value
-
isNotificationEnabled
public boolean isNotificationEnabled(ChangeType changeType)
For each changeType, tells if the notification is enabled- Specified by:
isNotificationEnabled
in 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:
enableNotification
in 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:
disableNotification
in interfacePersistentSearch
- Parameters:
changeType
- The chnageType we want some notification to be unset
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractControl
- See Also:
Object.hashCode()
-
equals
public boolean equals(Object other)
- Overrides:
equals
in classAbstractControl
- See Also:
Object.equals(Object)
-
toString
public String toString()
Return a String representing this PSearchControl.- Overrides:
toString
in classAbstractControl
-
-