public class SearchResultEntryProtocolOp extends ProtocolOp
Constructor and Description |
---|
SearchResultEntryProtocolOp(org.forgerock.opendj.ldap.Dn dn)
Creates a new LDAP search result entry protocol op with the specified DN
and no attributes.
|
SearchResultEntryProtocolOp(org.forgerock.opendj.ldap.Dn dn,
LinkedList<LDAPAttribute> attributes)
Creates a new LDAP search result entry protocol op with the specified DN
and set of attributes.
|
SearchResultEntryProtocolOp(SearchResultEntry searchEntry)
Creates a new search result entry protocol op from the provided search
result entry.
|
SearchResultEntryProtocolOp(SearchResultEntry searchEntry,
int ldapVersion)
Creates a new search result entry protocol op from the provided search
result entry and ldap protocol version.
|
Modifier and Type | Method and Description |
---|---|
LinkedList<LDAPAttribute> |
getAttributes()
Retrieves the set of attributes for this search result entry.
|
org.forgerock.opendj.ldap.Dn |
getDN()
Retrieves the DN for this search result entry.
|
String |
getProtocolOpName()
Retrieves the name for this protocol op type.
|
byte |
getType()
Retrieves the BER type for this protocol op.
|
void |
toLDIF(StringBuilder buffer,
int wrapColumn)
Appends an LDIF representation of the entry to the provided buffer.
|
SearchResultEntry |
toSearchResultEntry()
Converts this protocol op to a search result entry.
|
void |
toString(StringBuilder buffer)
Appends a string representation of this LDAP protocol op to the provided
buffer.
|
void |
toString(StringBuilder buffer,
int indent)
Appends a multi-line string representation of this LDAP protocol op to the
provided buffer.
|
void |
write(org.forgerock.opendj.io.Asn1Writer stream)
Writes this protocol op to an ASN.1 output stream.
|
toString
public SearchResultEntryProtocolOp(org.forgerock.opendj.ldap.Dn dn)
dn
- The DN for this search result entry.public SearchResultEntryProtocolOp(org.forgerock.opendj.ldap.Dn dn, LinkedList<LDAPAttribute> attributes)
dn
- The DN for this search result entry.attributes
- The set of attributes for this search result entry.public SearchResultEntryProtocolOp(SearchResultEntry searchEntry)
searchEntry
- The search result entry object to use to create this
search result entry protocol op.public SearchResultEntryProtocolOp(SearchResultEntry searchEntry, int ldapVersion)
searchEntry
- The search result entry object to use to create this
search result entry protocol op.ldapVersion
- The version of the LDAP protocol.public org.forgerock.opendj.ldap.Dn getDN()
public LinkedList<LDAPAttribute> getAttributes()
public byte getType()
getType
in class ProtocolOp
public String getProtocolOpName()
getProtocolOpName
in class ProtocolOp
public void write(org.forgerock.opendj.io.Asn1Writer stream) throws IOException
write
in class ProtocolOp
stream
- The ASN.1 output stream to write to.IOException
- If a problem occurs while writing to the stream.public void toString(StringBuilder buffer)
toString
in class ProtocolOp
buffer
- The buffer to which the string should be appended.public void toString(StringBuilder buffer, int indent)
toString
in class ProtocolOp
buffer
- The buffer to which the information should be appended.indent
- The number of spaces from the margin that the lines should
be indented.public void toLDIF(StringBuilder buffer, int wrapColumn)
buffer
- The buffer to which the entry should be appended.wrapColumn
- The column at which long lines should be wrapped.public SearchResultEntry toSearchResultEntry() throws LDAPException
LDAPException
- If a problem occurs while trying to create the
search result entry.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.