org.opends.server.types
Class SearchResultEntry

java.lang.Object
  extended by org.opends.server.types.Entry
      extended by org.opends.server.types.SearchResultEntry
All Implemented Interfaces:
ProtocolElement

@PublicAPI(stability=UNCOMMITTED,
           mayInstantiate=false,
           mayExtend=false,
           mayInvoke=true)
public final class SearchResultEntry
extends Entry

This class defines a data structure for storing information about an entry that matches a given set of search criteria and should be returned to the client. When the search result entry contains attribute types only, the objectclass type (if requested) will be present in the user attributes. When the search result entry contains both attribute types and values, the objectclass attribute will not be present in the user attributes.


Constructor Summary
SearchResultEntry(Entry entry)
          Creates a new search result entry based on the provided entry.
SearchResultEntry(Entry entry, java.util.List<Control> controls)
          Creates a new search result entry based on the provided entry.
 
Method Summary
 java.util.List<Control> getControls()
          Retrieves the set of controls to include with this search result entry when it is sent to the client.
 
Methods inherited from class org.opends.server.types.Entry
addAttribute, addObjectClass, addObjectClass, addObjectClasses, allowsAttribute, applyModification, applyModifications, conformsToSchema, decode, decode, decodeV1, decodeV2, duplicate, duplicateOperationalAttribute, duplicateOperationalAttribute, duplicateUserAttribute, duplicateUserAttribute, duplicateWithoutAttributes, duplicateWithoutOperationalAttributes, encode, encodeV1, encodeV2, equals, getAliasedDN, getAttachment, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttributes, getAttributeValue, getAttributeValues, getDN, getObjectClassAttribute, getObjectClasses, getOperationalAttribute, getOperationalAttribute, getOperationalAttributes, getProtocolElementName, getReferralURLs, getStructuralObjectClass, getUserAttribute, getUserAttribute, getUserAttributes, hasAttribute, hasAttribute, hasAttribute, hasAttribute, hashCode, hasObjectClass, hasOperationalAttribute, hasUserAttribute, hasValue, isAlias, isLDAPSubentry, isReferral, matchesBaseAndScope, processVirtualAttributes, processVirtualAttributes, putAttribute, removeAttribute, removeAttribute, removeAttribute, requiresAttribute, setAttachment, setDN, setObjectClasses, stripRealAttributes, stripVirtualAttributes, toLDIF, toLDIF, toLDIFString, toSingleLineString, toSingleLineString, toString, toString, toString, virtualAttributeProcessingPerformed
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SearchResultEntry

public SearchResultEntry(Entry entry)
Creates a new search result entry based on the provided entry. The provided entry should have been a duplicate of a real entry so that any changes that may be made to this entry (e.g., by access control or plugins) will not impact the original entry.

Parameters:
entry - The entry to use to create this search result entry.

SearchResultEntry

public SearchResultEntry(Entry entry,
                         java.util.List<Control> controls)
Creates a new search result entry based on the provided entry. The provided entry should have been a duplicate of a real entry so that any changes that may be made to this entry (e.g., by access control or plugins) will not impact the original entry.

Parameters:
entry - The entry to use to create this search result entry.
controls - The set of controls to return to the client with this entry.
Method Detail

getControls

public java.util.List<Control> getControls()
Retrieves the set of controls to include with this search result entry when it is sent to the client. This set of controls may be modified by the caller.

Returns:
The set of controls to include with this search result entry when it is sent to the client.