org.pf.directory.ldap
Class LDAPSearchResult

java.lang.Object
  extended by org.pf.osf.ObjectContainer
      extended by org.pf.osf.ObjectSearchResult
          extended by org.pf.directory.ldap.LDAPSearchResult

public class LDAPSearchResult
extends ObjectSearchResult

Apart from returning the found object a search result can contain information if the size limit has been reached.

Version:
1.0
Author:
Manfred Duchrow

Field Summary
 
Fields inherited from class org.pf.osf.ObjectSearchResult
UNLIMITED_SIZE
 
Constructor Summary
LDAPSearchResult()
          Initialize the new instance with no size limit.
LDAPSearchResult(int initialCapacity)
          Initialize the new instance with an initial size.
LDAPSearchResult(int initialCapacity, int maximumSize)
          Initialize the new instance with an initial size and a maximum size.
 
Method Summary
 LDAPDirEntry[] getFoundObjects()
          Returns an array containing all found objects.
 
Methods inherited from class org.pf.osf.ObjectSearchResult
add, clear, getSizeLimit, isFull, isSizeLimitExceeded, remove, setSizeLimit
 
Methods inherited from class org.pf.osf.ObjectContainer
asArray, asList, contains, containsEqualObject, copy, find, find, find, find, find, find, findFirst, findFirst, findFirst, findFirstIgnoreCase, findIgnoreCase, get, isEmpty, removeEqual, set, size
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDAPSearchResult

public LDAPSearchResult()
Initialize the new instance with no size limit.


LDAPSearchResult

public LDAPSearchResult(int initialCapacity)
Initialize the new instance with an initial size.

Parameters:
initialCapacity - Initial size reserved for elements

LDAPSearchResult

public LDAPSearchResult(int initialCapacity,
                        int maximumSize)
Initialize the new instance with an initial size and a maximum size. If the given initial size is greater than the maximum size, then the maximum size will be used as initial size too.

Parameters:
initialCapacity - Initial size reserved for elements
Method Detail

getFoundObjects

public LDAPDirEntry[] getFoundObjects()
Returns an array containing all found objects.