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 boolean
equals(Object o)
long
getChangeNumber()
ChangeType
getChangeType()
Dn
getPreviousDn()
int
hashCode()
void
setChangeNumber(long changeNumber)
Sets the ChangeNumbervoid
setChangeType(ChangeType changeType)
Set the ChangeTypevoid
setPreviousDn(Dn previousDn)
Sets the previous DNString
toString()
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 interface org.apache.directory.api.ldap.model.message.Control
getOid, isCritical, setCritical
-
-
-
-
Constructor Detail
-
EntryChangeImpl
public EntryChangeImpl()
Creates a new instance of EntryChangeControl.
-
-
Method Detail
-
getChangeType
public ChangeType getChangeType()
- Specified by:
getChangeType
in interfaceEntryChange
- Returns:
- The ChangeType
-
setChangeType
public void setChangeType(ChangeType changeType)
Set the ChangeType- Specified by:
setChangeType
in interfaceEntryChange
- Parameters:
changeType
- Add, Delete; Modify or ModifyDN
-
getPreviousDn
public Dn getPreviousDn()
- Specified by:
getPreviousDn
in interfaceEntryChange
- Returns:
- The previous DN
-
setPreviousDn
public void setPreviousDn(Dn previousDn)
Sets the previous DN- Specified by:
setPreviousDn
in interfaceEntryChange
- Parameters:
previousDn
- The previous DN
-
getChangeNumber
public long getChangeNumber()
- Specified by:
getChangeNumber
in interfaceEntryChange
- Returns:
- The change number
-
setChangeNumber
public void setChangeNumber(long changeNumber)
Sets the ChangeNumber- Specified by:
setChangeNumber
in interfaceEntryChange
- Parameters:
changeNumber
- The ChanegNumber
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractControl
- See Also:
Object.hashCode()
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classAbstractControl
- See Also:
Object.equals(Object)
-
toString
public String toString()
Return a String representing this EntryChangeControl.- Overrides:
toString
in classAbstractControl
-
-