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
  • Constructor Details

    • PersistentSearchImpl

      public PersistentSearchImpl()
      Default constructor
  • Method Details

    • setChangesOnly

      public void setChangesOnly(boolean changesOnly)
      Sets the ChangesOnly flag
      Specified by:
      setChangesOnly in interface PersistentSearch
      Parameters:
      changesOnly - The ChangesOnly flag
    • isChangesOnly

      public boolean isChangesOnly()
      Specified by:
      isChangesOnly in interface PersistentSearch
      Returns:
      true if the changesOnly flag is set
    • setReturnECs

      public void setReturnECs(boolean returnECs)
      Sets the return entry changes flag
      Specified by:
      setReturnECs in interface PersistentSearch
      Parameters:
      returnECs - the return entry changes flag
    • isReturnECs

      public boolean isReturnECs()
      Specified by:
      isReturnECs in interface PersistentSearch
      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 interface PersistentSearch
      Parameters:
      changeTypes - The changeType values (Add, Modify, Delete and ModifyDn)
    • getChangeTypes

      public int getChangeTypes()
      Specified by:
      getChangeTypes in interface PersistentSearch
      Returns:
      The changeTypes value
    • isNotificationEnabled

      public boolean isNotificationEnabled(ChangeType changeType)
      For each changeType, tells if the notification is enabled
      Specified by:
      isNotificationEnabled in interface PersistentSearch
      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 interface PersistentSearch
      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 interface PersistentSearch
      Parameters:
      changeType - The chnageType we want some notification to be unset
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AbstractControl
      See Also:
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class AbstractControl
      See Also:
    • toString

      public String toString()
      Return a String representing this PSearchControl.
      Overrides:
      toString in class AbstractControl