org.ldaptive.control
Class EntryChangeNotificationControl

java.lang.Object
  extended by org.ldaptive.control.AbstractControl
      extended by org.ldaptive.control.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
   }
 

Version:
$Revision: 3189 $ $Date: 2016-11-01 17:21:43 -0400 (Tue, 01 Nov 2016) $
Author:
Middleware Services

Field Summary
static String OID
          OID of this control.
 
Fields inherited from class org.ldaptive.control.AbstractControl
logger
 
Constructor Summary
EntryChangeNotificationControl()
          Default constructor.
EntryChangeNotificationControl(boolean critical)
          Creates a new entry change notification control.
EntryChangeNotificationControl(PersistentSearchChangeType type)
          Creates a new entry change notification control.
EntryChangeNotificationControl(PersistentSearchChangeType type, boolean critical)
          Creates a new entry change notification control.
EntryChangeNotificationControl(PersistentSearchChangeType type, String dn, long number)
          Creates a new entry change notification control.
EntryChangeNotificationControl(PersistentSearchChangeType type, String dn, long number, boolean critical)
          Creates a new entry change notification control.
 
Method Summary
 void decode(byte[] berValue)
          Initializes this response control with the supplied BER encoded data.
 boolean equals(Object o)
          
 long getChangeNumber()
          Returns the change number.
 PersistentSearchChangeType getChangeType()
          Returns the change type.
 String getPreviousDn()
          Returns the previous dn.
 int hashCode()
          Returns the hash code for this object.
 void setChangeNumber(long number)
          Sets the change number.
 void setChangeType(PersistentSearchChangeType type)
          Sets the change type.
 void setPreviousDn(String dn)
          Sets the previous dn.
 String toString()
          
 
Methods inherited from class org.ldaptive.control.AbstractControl
getCriticality, getOID
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ldaptive.control.Control
getCriticality, getOID
 

Field Detail

OID

public static final String OID
OID of this control.

See Also:
Constant Field Values
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

getChangeType

public PersistentSearchChangeType getChangeType()
Returns the change type.

Returns:
change type

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

equals

public boolean equals(Object o)

Overrides:
equals in class AbstractControl

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

toString

public String toString()

Overrides:
toString in class Object

decode

public void decode(byte[] berValue)
Initializes this response control with the supplied BER encoded data.

Specified by:
decode in interface ResponseControl
Parameters:
berValue - BER encoded response control


Copyright © 2003-2017 Virginia Tech. All Rights Reserved.