Class PersistentSearchImpl

    • Field Detail

      • changesOnly

        private boolean changesOnly
        If changesOnly is TRUE, the server MUST NOT return any existing entries that match the search criteria. Entries are only returned when they are changed (added, modified, deleted, or subject to a modifyDN operation).
      • returnECs

        private boolean returnECs
        If returnECs is TRUE, the server MUST return an Entry Change Notification control with each entry returned as the result of changes.
      • changeTypes

        private int changeTypes
        As changes are made to the server, the effected entries MUST be returned to the client if they match the standard search criteria and if the operation that caused the change is included in the changeTypes field. The changeTypes field is the logical OR of one or more of these values: add (1), delete (2), modify (4), modDN (8).
    • Constructor Detail

      • PersistentSearchImpl

        public PersistentSearchImpl()
        Default constructor
    • Method Detail

      • 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)
      • 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