Class EntryChangeNotificationControl

  • All Implemented Interfaces:
    Control, ResponseControl

    public class EntryChangeNotificationControl
    extends AbstractControl
    implements ResponseControl
    Response control for persistent search. See http://tools.ietf.org/id/draft-ietf-ldapext-psearch-03.txt. Control is defined as:
       EntryChangeNotification ::= SEQUENCE {
          changeType ENUMERATED {
             add             (1),
             delete          (2),
             modify          (4),
             modDN           (8)
          },
          previousDN   LDAPDN OPTIONAL,     -- modifyDN ops. only
          changeNumber INTEGER OPTIONAL     -- if supported
       }
     
    • Constructor Detail

      • EntryChangeNotificationControl

        public EntryChangeNotificationControl()
        Default constructor.
      • EntryChangeNotificationControl

        public EntryChangeNotificationControl​(boolean critical)
        Creates a new entry change notification control.
        Parameters:
        critical - whether this control is critical
      • EntryChangeNotificationControl

        public EntryChangeNotificationControl​(PersistentSearchChangeType type)
        Creates a new entry change notification control.
        Parameters:
        type - persistent search change type
      • EntryChangeNotificationControl

        public EntryChangeNotificationControl​(PersistentSearchChangeType type,
                                              boolean critical)
        Creates a new entry change notification control.
        Parameters:
        type - persistent search change type
        critical - whether this control is critical
      • EntryChangeNotificationControl

        public EntryChangeNotificationControl​(PersistentSearchChangeType type,
                                              String dn,
                                              long number)
        Creates a new entry change notification control.
        Parameters:
        type - persistent search change type
        dn - previous dn
        number - change number
      • EntryChangeNotificationControl

        public EntryChangeNotificationControl​(PersistentSearchChangeType type,
                                              String dn,
                                              long number,
                                              boolean critical)
        Creates a new entry change notification control.
        Parameters:
        type - persistent search change type
        dn - previous dn
        number - change number
        critical - whether this control is critical
    • Method Detail

      • setChangeType

        public void setChangeType​(PersistentSearchChangeType type)
        Sets the change type.
        Parameters:
        type - change type
      • getPreviousDn

        public String getPreviousDn()
        Returns the previous dn.
        Returns:
        previous dn
      • setPreviousDn

        public void setPreviousDn​(String dn)
        Sets the previous dn.
        Parameters:
        dn - previous dn
      • getChangeNumber

        public long getChangeNumber()
        Returns the change number.
        Returns:
        change number
      • setChangeNumber

        public void setChangeNumber​(long number)
        Sets the change number.
        Parameters:
        number - change number
      • hashCode

        public int hashCode()
        Description copied from class: AbstractControl
        Returns the hash code for this object.
        Specified by:
        hashCode in class AbstractControl
        Returns:
        hash code
      • decode

        public void decode​(DERBuffer encoded)
        Description copied from interface: ResponseControl
        Initializes this response control with the supplied BER encoded data.
        Specified by:
        decode in interface ResponseControl
        Parameters:
        encoded - BER encoded response control