|
|||||||||
| 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.LDIFAddChangeRecord
@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class LDIFAddChangeRecord
This class defines an LDIF add change record, which can be used to represent
an LDAP add request. See the documentation for the LDIFChangeRecord
class for an example demonstrating the process for interacting with LDIF
change records.
| Constructor Summary | |
|---|---|
LDIFAddChangeRecord(AddRequest addRequest)
Creates a new LDIF add change record from the provided add request. |
|
LDIFAddChangeRecord(Entry entry)
Creates a new LDIF add change record from the provided entry. |
|
LDIFAddChangeRecord(java.lang.String dn,
Attribute... attributes)
Creates a new LDIF add change record with the provided DN and attributes. |
|
LDIFAddChangeRecord(java.lang.String dn,
java.util.List<Attribute> attributes)
Creates a new LDIF add change record with the provided DN and attributes. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Indicates whether the provided object is equal to this LDIF change record. |
Attribute[] |
getAttributes()
Retrieves the set of attributes for this add change record. |
ChangeType |
getChangeType()
Retrieves the type of operation represented by this LDIF change record. |
Entry |
getEntryToAdd()
Retrieves the entry that would be created by this add change record. |
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. |
AddRequest |
toAddRequest()
Creates an add request from this LDIF add change record. |
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. |
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 LDIFAddChangeRecord(java.lang.String dn,
Attribute... attributes)
dn - The DN for this LDIF add change record. It must not be
null.attributes - The set of attributes for this LDIF add change record.
It must not be null or empty.
public LDIFAddChangeRecord(java.lang.String dn,
java.util.List<Attribute> attributes)
dn - The DN for this LDIF add change record. It must not be
null.attributes - The set of attributes for this LDIF add change record.
It must not be null or empty.public LDIFAddChangeRecord(Entry entry)
entry - The entry to use to create this LDIF add change record. It
must not be null.public LDIFAddChangeRecord(AddRequest addRequest)
addRequest - The add request to use to create this LDIF add change
record. It must not be null.| Method Detail |
|---|
public Attribute[] getAttributes()
public Entry getEntryToAdd()
public AddRequest toAddRequest()
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 | ||||||||