|
||||||||||
| 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 attribute
public 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.Modificationpublic void setOperation(int operation)
setOperation in interface org.apache.directory.shared.ldap.entry.Modificationoperation - The DirContext value to assignpublic void setOperation(org.apache.directory.shared.ldap.entry.ModificationOperation operation)
setOperation in interface org.apache.directory.shared.ldap.entry.Modificationoperation - The DirContext value to assignpublic org.apache.directory.shared.ldap.entry.EntryAttribute getAttribute()
getAttribute in interface org.apache.directory.shared.ldap.entry.Modificationpublic void setAttribute(org.apache.directory.shared.ldap.entry.EntryAttribute attribute)
setAttribute in interface org.apache.directory.shared.ldap.entry.Modificationattribute - The modified attributepublic org.apache.directory.shared.ldap.entry.Modification toClientModification()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object that)
equals in class java.lang.ObjectObject.equals(Object)public ServerModification clone()
clone in interface org.apache.directory.shared.ldap.entry.Modificationclone in class java.lang.Object
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionWe can't use this method for a ServerModification.
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException
readExternal in interface java.io.Externalizablejava.io.IOExceptionWe 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 registries
public void serialize(java.io.ObjectOutput out)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||