public class ServerModification extends Object implements Modification
| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Constructor and Description |
|---|
ServerModification()
Create a new instance of a ServerModification.
|
ServerModification(ModificationOperation operation,
EntryAttribute attribute)
Create a new instance of a ServerModification.
|
ServerModification(SchemaManager schemaManager,
Modification modification) |
| Modifier and Type | Method and Description |
|---|---|
ServerModification |
clone()
Create a clone instance
|
void |
deserialize(ObjectInput in,
SchemaManager schemaManager)
Deserialize a ServerModification
|
boolean |
equals(Object that) |
EntryAttribute |
getAttribute() |
ModificationOperation |
getOperation() |
int |
hashCode()
Compute the modification @see Object#hashCode
|
void |
readExternal(ObjectInput in) |
void |
serialize(ObjectOutput out)
Serialize a ServerModification.
|
void |
setAttribute(EntryAttribute attribute)
Set the attribute's modification
|
void |
setOperation(int operation)
Store the modification operation
|
void |
setOperation(ModificationOperation operation)
Store the modification operation
|
Modification |
toClientModification()
Convert the current ServerModification to a ClientModification instance
|
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public static final long serialVersionUID
public ServerModification()
public ServerModification(ModificationOperation operation, EntryAttribute attribute)
operation - the Modification operation (one of add, replace or remove)attribute - the modified attributepublic ServerModification(SchemaManager schemaManager, Modification modification)
public ModificationOperation getOperation()
getOperation in interface Modificationpublic void setOperation(int operation)
setOperation in interface Modificationoperation - The DirContext value to assignpublic void setOperation(ModificationOperation operation)
setOperation in interface Modificationoperation - The DirContext value to assignpublic EntryAttribute getAttribute()
getAttribute in interface Modificationpublic void setAttribute(EntryAttribute attribute)
setAttribute in interface Modificationattribute - The modified attributepublic Modification toClientModification()
public int hashCode()
public boolean equals(Object that)
equals in class ObjectObject.equals(Object)public ServerModification clone()
clone in interface Modificationclone in class Objectpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionWe can't use this method for a ServerModification.public void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionWe can't use this method for a ServerModification.public void deserialize(ObjectInput in, SchemaManager schemaManager) throws IOException, ClassNotFoundException, LdapException
in - The buffer containing the serialized valueatRegistry - The AttributeType registryIOException - If we weren't able to deserialize the dataClassNotFoundException - if we weren't able to construct a Modification instanceLdapException - If we didn't found the AttributeType in the registriespublic void serialize(ObjectOutput out) throws IOException
IOExceptionpublic String toString()
toString in class ObjectObject.toString()Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.