Class EntryChangeImpl
java.lang.Object
org.apache.directory.api.ldap.model.message.controls.AbstractControl
org.apache.directory.api.ldap.model.message.controls.EntryChangeImpl
- All Implemented Interfaces:
Control, EntryChange
A simple implementation of the EntryChange response control.
- Author:
- Apache Directory Project
-
Field Summary
Fields inherited from interface EntryChange
OID, UNDEFINED_CHANGE_NUMBER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonginthashCode()voidsetChangeNumber(long changeNumber) Sets the ChangeNumbervoidsetChangeType(ChangeType changeType) Set the ChangeTypevoidsetPreviousDn(Dn previousDn) Sets the previous DNtoString()Return a String representing this EntryChangeControl.Methods inherited from class AbstractControl
getOid, isCritical, setCriticalMethods inherited from interface Control
getOid, isCritical, setCritical
-
Constructor Details
-
EntryChangeImpl
public EntryChangeImpl()Creates a new instance of EntryChangeControl.
-
-
Method Details
-
getChangeType
- Specified by:
getChangeTypein interfaceEntryChange- Returns:
- The ChangeType
-
setChangeType
Set the ChangeType- Specified by:
setChangeTypein interfaceEntryChange- Parameters:
changeType- Add, Delete; Modify or ModifyDN
-
getPreviousDn
- Specified by:
getPreviousDnin interfaceEntryChange- Returns:
- The previous DN
-
setPreviousDn
Sets the previous DN- Specified by:
setPreviousDnin interfaceEntryChange- Parameters:
previousDn- The previous DN
-
getChangeNumber
public long getChangeNumber()- Specified by:
getChangeNumberin interfaceEntryChange- Returns:
- The change number
-
setChangeNumber
public void setChangeNumber(long changeNumber) Sets the ChangeNumber- Specified by:
setChangeNumberin interfaceEntryChange- Parameters:
changeNumber- The ChanegNumber
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractControl- See Also:
-
equals
- Overrides:
equalsin classAbstractControl- See Also:
-
toString
Return a String representing this EntryChangeControl.- Overrides:
toStringin classAbstractControl
-