com.atlassian.user.impl.ldap.search.page
Class LDAPEntityPager<T extends Entity>

java.lang.Object
  extended by com.atlassian.user.search.page.AbstractPrefetchingPager<T>
      extended by com.atlassian.user.impl.ldap.search.page.AbstractLDAPPager<T>
          extended by com.atlassian.user.impl.ldap.search.page.LDAPEntityPager<T>
All Implemented Interfaces:
Pager<T>, Iterable<T>, Iterator<T>
Direct Known Subclasses:
LDAPListOfGroupsPager

public class LDAPEntityPager<T extends Entity>
extends AbstractLDAPPager<T>


Field Summary
protected  LDAPEntityFactory<? extends T> 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, searchProperties
 
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(LdapSearchProperties searchProperties, LdapContextFactory repository, LDAPEntityFactory<? extends T> entityFactory, LDAPPagerInfo info)
           
 
Method Summary
protected  List<T> preloadSearchResult(SearchResult result, List<T> 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<? extends T extends Entity> entityFactory
Constructor Detail

LDAPEntityPager

public LDAPEntityPager(LdapSearchProperties searchProperties,
                       LdapContextFactory repository,
                       LDAPEntityFactory<? extends T> entityFactory,
                       LDAPPagerInfo info)
Method Detail

preloadSearchResult

protected List<T> preloadSearchResult(SearchResult result,
                                      List<T> 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<T extends Entity>
Returns:
the List of prefetched results.
Throws:
EntityException


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