| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.protocols.ldap; |
| | | |
| | |
| | | |
| | | attributes = new LinkedList<LDAPAttribute>(); |
| | | |
| | | Attribute ocAttr = searchEntry.getObjectClassAttribute(); |
| | | if (ocAttr != null) |
| | | { |
| | | attributes.add(new LDAPAttribute(ocAttr)); |
| | | } |
| | | |
| | | if (ldapVersion == 2) |
| | | { |
| | | // Merge attributes having the same type into a single |
| | |
| | | * |
| | | * @return The BER type for this protocol op. |
| | | */ |
| | | @Override |
| | | public byte getType() |
| | | { |
| | | return OP_TYPE_SEARCH_RESULT_ENTRY; |
| | |
| | | * |
| | | * @return The name for this protocol op type. |
| | | */ |
| | | @Override |
| | | public String getProtocolOpName() |
| | | { |
| | | return "Search Result Entry"; |
| | |
| | | * |
| | | * @return The ASN.1 element containing the encoded protocol op. |
| | | */ |
| | | @Override |
| | | public ASN1Element encode() |
| | | { |
| | | ArrayList<ASN1Element> elements = new ArrayList<ASN1Element>(2); |
| | |
| | | * |
| | | * @param buffer The buffer to which the string should be appended. |
| | | */ |
| | | @Override |
| | | public void toString(StringBuilder buffer) |
| | | { |
| | | buffer.append("SearchResultEntry(dn="); |
| | |
| | | * @param indent The number of spaces from the margin that the lines should |
| | | * be indented. |
| | | */ |
| | | @Override |
| | | public void toString(StringBuilder buffer, int indent) |
| | | { |
| | | StringBuilder indentBuf = new StringBuilder(indent); |