|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.entry.ServerModification
public class ServerModification
An internal implementation for a ModificationItem. The name has been chosen so that it does not conflict with @see ModificationItem
Field Summary | |
---|---|
static long |
serialVersionUID
|
Constructor Summary | |
---|---|
ServerModification()
Create a new instance of a ServerModification. |
|
ServerModification(org.apache.directory.shared.ldap.entry.ModificationOperation operation,
org.apache.directory.shared.ldap.entry.EntryAttribute attribute)
Create a new instance of a ServerModification. |
|
ServerModification(Registries registries,
org.apache.directory.shared.ldap.entry.Modification modification)
|
Method Summary | |
---|---|
ServerModification |
clone()
Create a clone instance |
void |
deserialize(java.io.ObjectInput in,
AttributeTypeRegistry atRegistry)
Deserialize a ServerModification |
boolean |
equals(java.lang.Object that)
|
org.apache.directory.shared.ldap.entry.EntryAttribute |
getAttribute()
|
org.apache.directory.shared.ldap.entry.ModificationOperation |
getOperation()
|
int |
hashCode()
Compute the modification @see Object#hashCode |
void |
readExternal(java.io.ObjectInput in)
|
void |
serialize(java.io.ObjectOutput out)
Serialize a ServerModification. |
void |
setAttribute(org.apache.directory.shared.ldap.entry.EntryAttribute attribute)
Set the attribute's modification |
void |
setOperation(int operation)
Store the modification operation |
void |
setOperation(org.apache.directory.shared.ldap.entry.ModificationOperation operation)
Store the modification operation |
org.apache.directory.shared.ldap.entry.Modification |
toClientModification()
Convert the current ServerModification to a ClientModification instance |
java.lang.String |
toString()
|
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public ServerModification()
public ServerModification(org.apache.directory.shared.ldap.entry.ModificationOperation operation, org.apache.directory.shared.ldap.entry.EntryAttribute attribute)
operation
- the Modification operation (one of add, replace or remove)attribute
- the modified attributepublic ServerModification(Registries registries, org.apache.directory.shared.ldap.entry.Modification modification)
Method Detail |
---|
public org.apache.directory.shared.ldap.entry.ModificationOperation getOperation()
getOperation
in interface org.apache.directory.shared.ldap.entry.Modification
public void setOperation(int operation)
setOperation
in interface org.apache.directory.shared.ldap.entry.Modification
operation
- The DirContext value to assignpublic void setOperation(org.apache.directory.shared.ldap.entry.ModificationOperation operation)
setOperation
in interface org.apache.directory.shared.ldap.entry.Modification
operation
- The DirContext value to assignpublic org.apache.directory.shared.ldap.entry.EntryAttribute getAttribute()
getAttribute
in interface org.apache.directory.shared.ldap.entry.Modification
public void setAttribute(org.apache.directory.shared.ldap.entry.EntryAttribute attribute)
setAttribute
in interface org.apache.directory.shared.ldap.entry.Modification
attribute
- The modified attributepublic org.apache.directory.shared.ldap.entry.Modification toClientModification()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
Object.equals(Object)
public ServerModification clone()
clone
in interface org.apache.directory.shared.ldap.entry.Modification
clone
in class java.lang.Object
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
We can't use this method for a ServerModification.
public void readExternal(java.io.ObjectInput in) throws java.io.IOException
readExternal
in interface java.io.Externalizable
java.io.IOException
We can't use this method for a ServerModification.
public void deserialize(java.io.ObjectInput in, AttributeTypeRegistry atRegistry) throws java.io.IOException, java.lang.ClassNotFoundException, javax.naming.NamingException
in
- The buffer containing the serialized valueatRegistry
- The AttributeType registry
java.io.IOException
- If we weren't able to deserialize the data
java.lang.ClassNotFoundException
- if we weren't able to construct a Modification instance
javax.naming.NamingException
- If we didn't found the AttributeType in the registriespublic void serialize(java.io.ObjectOutput out) throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |