com.atlassian.user.impl.ldap.search.page
Class LDAPEntityPager

java.lang.Object
  extended bycom.atlassian.user.search.page.AbstractPrefetchingPager
      extended bycom.atlassian.user.impl.ldap.search.page.AbstractLDAPPager
          extended bycom.atlassian.user.impl.ldap.search.page.LDAPEntityPager
All Implemented Interfaces:
java.util.Iterator, Pager
Direct Known Subclasses:
LDAPListOfGroupsPager

public class LDAPEntityPager
extends AbstractLDAPPager


Field Summary
protected  LDAPEntityFactory entityFactory
           
static org.apache.log4j.Category log
           
 
Fields inherited from class com.atlassian.user.impl.ldap.search.page.AbstractLDAPPager
closed, enume, originalBaseSearchContext, originalQuery, repository, returningAttributes, searchAllDepths
 
Fields inherited from class com.atlassian.user.search.page.AbstractPrefetchingPager
idx, indexOfFirstItemInCurrentPage, lastPage
 
Fields inherited from interface com.atlassian.user.search.page.Pager
EMPTY_PAGER, NO_POSITION, PRELOAD_LIMIT
 
Constructor Summary
LDAPEntityPager(LdapContextFactory repository, LDAPEntityFactory entityFactory, LDAPPagerInfo info)
           
 
Method Summary
protected  java.util.List preloadSearchResult(javax.naming.directory.SearchResult result, java.util.List prefetched)
          Parses the SearchResult and stores the result in the list of prefetched items.
 
Methods inherited from class com.atlassian.user.impl.ldap.search.page.AbstractLDAPPager
fetch, preload, remove
 
Methods inherited from class com.atlassian.user.search.page.AbstractPrefetchingPager
getCurrentPage, getIndex, getIndexOfFirstItemInCurrentPage, getIndexWithinPage, hasNext, isEmpty, iterator, next, nextPage, onLastPage, preload, skipTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Iterator
hasNext, next
 

Field Detail

log

public static final org.apache.log4j.Category log

entityFactory

protected LDAPEntityFactory entityFactory
Constructor Detail

LDAPEntityPager

public LDAPEntityPager(LdapContextFactory repository,
                       LDAPEntityFactory entityFactory,
                       LDAPPagerInfo info)
Method Detail

preloadSearchResult

protected java.util.List preloadSearchResult(javax.naming.directory.SearchResult result,
                                             java.util.List prefetched)
                                      throws EntityException
Description copied from class: AbstractLDAPPager
Parses the SearchResult and stores the result in the list of prefetched items.

Specified by:
preloadSearchResult in class AbstractLDAPPager
Returns:
the List of prefetched results.
Throws:
EntityException


Copyright © 2005-2008 Atlassian Software Systems Pty Ltd. All Rights Reserved.