|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.unboundid.ldif.LDIFChangeRecord
com.unboundid.ldif.LDIFModifyDNChangeRecord
@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class LDIFModifyDNChangeRecord
This class defines an LDIF modify DN change record, which can be used to
represent an LDAP modify DN request. See the documentation for the
LDIFChangeRecord class for an example demonstrating the process for
interacting with LDIF change records.
| Constructor Summary | |
|---|---|
LDIFModifyDNChangeRecord(ModifyDNRequest modifyDNRequest)
Creates a new LDIF modify DN change record from the provided modify DN request. |
|
LDIFModifyDNChangeRecord(java.lang.String dn,
java.lang.String newRDN,
boolean deleteOldRDN,
java.lang.String newSuperiorDN)
Creates a new LDIF modify DN change record with the provided information. |
|
| Method Summary | |
|---|---|
boolean |
deleteOldRDN()
Indicates whether to delete the current RDN value from the entry. |
boolean |
equals(java.lang.Object o)
Indicates whether the provided object is equal to this LDIF change record. |
ChangeType |
getChangeType()
Retrieves the type of operation represented by this LDIF change record. |
DN |
getNewDN()
Retrieves the DN that the entry should have after the successful completion of the operation. |
java.lang.String |
getNewRDN()
Retrieves the new RDN value for the entry. |
java.lang.String |
getNewSuperiorDN()
Retrieves the new superior DN for the entry, if applicable. |
RDN |
getParsedNewRDN()
Retrieves the parsed new RDN value for the entry. |
DN |
getParsedNewSuperiorDN()
Retrieves the parsed new superior DN for the entry, if applicable. |
int |
hashCode()
Retrieves a hash code for this change record. |
LDAPResult |
processChange(LDAPInterface connection)
Apply the change represented by this LDIF change record to a directory server using the provided connection. |
void |
toLDIF(ByteStringBuffer buffer,
int wrapColumn)
Appends an LDIF string representation of this change record to the provided buffer. |
java.lang.String[] |
toLDIF(int wrapColumn)
Retrieves a string array whose lines contain an LDIF representation of this change record. |
void |
toLDIFString(java.lang.StringBuilder buffer,
int wrapColumn)
Appends an LDIF string representation of this change record to the provided buffer. |
ModifyDNRequest |
toModifyDNRequest()
Creates a modify DN request from this LDIF modify DN change record. |
void |
toString(java.lang.StringBuilder buffer)
Appends a single-line string representation of this change record to the provided buffer. |
| Methods inherited from class com.unboundid.ldif.LDIFChangeRecord |
|---|
getDN, getParsedDN, toLDIF, toLDIF, toLDIFString, toLDIFString, toLDIFString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LDIFModifyDNChangeRecord(java.lang.String dn,
java.lang.String newRDN,
boolean deleteOldRDN,
java.lang.String newSuperiorDN)
dn - The current DN for the entry. It must not be
null.newRDN - The new RDN value for the entry. It must not be
null.deleteOldRDN - Indicates whether to delete the currentRDN value
from the entry.newSuperiorDN - The new superior DN for this LDIF modify DN change
record. It may be null if the entry is not
to be moved below a new parent.public LDIFModifyDNChangeRecord(ModifyDNRequest modifyDNRequest)
modifyDNRequest - The modify DN request to use to create this LDIF
modify DN change record. It must not be
null.| Method Detail |
|---|
public java.lang.String getNewRDN()
public RDN getParsedNewRDN()
throws LDAPException
LDAPException - If a problem occurs while trying to parse the new
RDN.public boolean deleteOldRDN()
true if the current RDN value should be removed from the
entry, or false if not.public java.lang.String getNewSuperiorDN()
null if the entry is
not to be moved below a new parent.
public DN getParsedNewSuperiorDN()
throws LDAPException
null if the
entry is not to be moved below a new parent.
LDAPException - If a problem occurs while trying to parse the new
superior DN.
public DN getNewDN()
throws LDAPException
LDAPException - If a problem occurs while trying to parse the
target DN, new RDN, or new superior DN.public ModifyDNRequest toModifyDNRequest()
public ChangeType getChangeType()
getChangeType in class LDIFChangeRecord
public LDAPResult processChange(LDAPInterface connection)
throws LDAPException
processChange in class LDIFChangeRecordconnection - The connection to use to apply the change.
LDAPException - If an error occurs while processing this change
in the associated directory server.public java.lang.String[] toLDIF(int wrapColumn)
toLDIF in interface LDIFRecordtoLDIF in class LDIFChangeRecordwrapColumn - The column at which to wrap long lines. A value that
is less than or equal to two indicates that no
wrapping should be performed.
public void toLDIF(ByteStringBuffer buffer,
int wrapColumn)
toLDIF in interface LDIFRecordtoLDIF in class LDIFChangeRecordbuffer - The buffer to which to append an LDIF representation of
this change record.wrapColumn - The column at which to wrap long lines. A value that
is less than or equal to two indicates that no
wrapping should be performed.
public void toLDIFString(java.lang.StringBuilder buffer,
int wrapColumn)
toLDIFString in interface LDIFRecordtoLDIFString in class LDIFChangeRecordbuffer - The buffer to which to append an LDIF representation of
this change record.wrapColumn - The column at which to wrap long lines. A value that
is less than or equal to two indicates that no
wrapping should be performed.public int hashCode()
hashCode in class LDIFChangeRecordpublic boolean equals(java.lang.Object o)
equals in class LDIFChangeRecordo - The object for which to make the determination.
true if the provided object is equal to this LDIF change
record, or false if not.public void toString(java.lang.StringBuilder buffer)
toString in interface LDIFRecordtoString in class LDIFChangeRecordbuffer - The buffer to which the information should be written.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||