|
All LDAP Classes Internal LDAP Classes |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.ldap.LDAPControl
com.novell.ldap.controls.LDAPEntryChangeControl
public class LDAPEntryChangeControl
LDAPEntryChangeControl is a Server Control returned at the request of the client in response to a persistent search request. It contains additional information about a change such as what type of change occurred.
Sample Code: SearchPersist.java
Field Summary | |
---|---|
private int |
m_changeNumber
|
private int |
m_changeType
|
private boolean |
m_hasChangeNumber
|
private java.lang.String |
m_previousDN
|
Constructor Summary | |
---|---|
LDAPEntryChangeControl(java.lang.String oid,
boolean critical,
byte[] value)
This constructor is called by the SDK to create an LDAPEntryChangeControl. |
Method Summary | |
---|---|
int |
getChangeNumber()
returns the record number of the change in the servers change log. |
int |
getChangeType()
Returns the type of change that occured |
private java.lang.String |
getChangeTypeString(int changeType)
Return a string indicating the type of change represented by the changeType parameter. |
boolean |
getHasChangeNumber()
returns the record number of the change in the servers change log. |
java.lang.String |
getPreviousDN()
Returns the previous DN of the entry, if it was renamed. |
java.lang.String |
toString()
Returns a string representation of the control for debugging. |
Methods inherited from class com.novell.ldap.LDAPControl |
---|
clone, getID, getValue, isCritical, readDSML, readExternal, register, setValue, writeDSML, writeExternal |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int m_changeType
private java.lang.String m_previousDN
private boolean m_hasChangeNumber
private int m_changeNumber
Constructor Detail |
---|
public LDAPEntryChangeControl(java.lang.String oid, boolean critical, byte[] value) throws java.io.IOException
The Entry Change Control is defined as follows:
EntryChangeNotification ::= SEQUENCE {
changeType ENUMERATED {
add (1),
delete (2),
modify (4),
modDN (8)
},
previousDN LDAPDN OPTIONAL, -- modifyDN ops. only
changeNumber INTEGER OPTIONAL -- if supported
}
oid
- The OID of the control, as a dotted string.
critical
- True if the LDAP operation should be discarded if
the control is not supported. False if
the operation can be processed without the control.
value
- The control-specific data.
java.io.IOException
Method Detail |
---|
public boolean getHasChangeNumber()
public int getChangeNumber()
public int getChangeType()
public java.lang.String getPreviousDN()
public java.lang.String toString()
toString
in class LDAPControl
private java.lang.String getChangeTypeString(int changeType)
|
All LDAP Classes Internal LDAP Classes |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |