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
public class EntryChangeImpl extends AbstractControl implements EntryChange
A simple implementation of the EntryChange response control.- Author:
- Apache Directory Project
-
-
Field Summary
-
Fields inherited from interface org.apache.directory.api.ldap.model.message.controls.EntryChange
OID, UNDEFINED_CHANGE_NUMBER
-
-
Constructor Summary
Constructors Constructor Description EntryChangeImpl()Creates a new instance of EntryChangeControl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)longgetChangeNumber()ChangeTypegetChangeType()DngetPreviousDn()inthashCode()voidsetChangeNumber(long changeNumber)Sets the ChangeNumbervoidsetChangeType(ChangeType changeType)Set the ChangeTypevoidsetPreviousDn(Dn previousDn)Sets the previous DNStringtoString()Return a String representing this EntryChangeControl.-
Methods inherited from class org.apache.directory.api.ldap.model.message.controls.AbstractControl
getOid, isCritical, setCritical
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Control
getOid, isCritical, setCritical
-
-
-
-
Method Detail
-
getChangeType
public ChangeType getChangeType()
- Specified by:
getChangeTypein interfaceEntryChange- Returns:
- The ChangeType
-
setChangeType
public void setChangeType(ChangeType changeType)
Set the ChangeType- Specified by:
setChangeTypein interfaceEntryChange- Parameters:
changeType- Add, Delete; Modify or ModifyDN
-
getPreviousDn
public Dn getPreviousDn()
- Specified by:
getPreviousDnin interfaceEntryChange- Returns:
- The previous DN
-
setPreviousDn
public void setPreviousDn(Dn previousDn)
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:
Object.hashCode()
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAbstractControl- See Also:
Object.equals(Object)
-
toString
public String toString()
Return a String representing this EntryChangeControl.- Overrides:
toStringin classAbstractControl
-
-