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

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

public abstract class AbstractLDAPPager
extends AbstractPrefetchingPager
implements java.util.Iterator


Field Summary
 boolean closed
           
protected  javax.naming.NamingEnumeration enume
           
protected  org.apache.log4j.Logger log
           
protected  java.lang.String originalBaseSearchContext
           
protected  net.sf.ldaptemplate.support.filter.Filter originalQuery
           
protected  LdapContextFactory repository
           
protected  java.lang.String[] returningAttributes
           
protected  boolean 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
  AbstractLDAPPager()
           
protected AbstractLDAPPager(LdapContextFactory repository, LDAPPagerInfo info)
           
 
Method Summary
protected  java.util.List fetch(java.lang.Object element, java.util.List prefetched)
           
protected  void preload()
          Preloads the page into the prefetched list.
protected abstract  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.
 void 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

protected final org.apache.log4j.Logger log

enume

protected javax.naming.NamingEnumeration enume

originalQuery

protected net.sf.ldaptemplate.support.filter.Filter originalQuery

repository

protected LdapContextFactory repository

originalBaseSearchContext

protected java.lang.String originalBaseSearchContext

searchAllDepths

protected boolean searchAllDepths

returningAttributes

protected java.lang.String[] returningAttributes

closed

public boolean closed
Constructor Detail

AbstractLDAPPager

protected AbstractLDAPPager(LdapContextFactory repository,
                            LDAPPagerInfo info)

AbstractLDAPPager

public AbstractLDAPPager()
Method Detail

preloadSearchResult

protected abstract java.util.List preloadSearchResult(javax.naming.directory.SearchResult result,
                                                      java.util.List prefetched)
                                               throws EntityException
Parses the SearchResult and stores the result in the list of prefetched items.

Returns:
the List of prefetched results.
Throws:
EntityException

remove

public void remove()
Specified by:
remove in interface java.util.Iterator
Overrides:
remove in class AbstractPrefetchingPager

preload

protected void preload()
Preloads the page into the prefetched list.

Specified by:
preload in class AbstractPrefetchingPager

fetch

protected java.util.List fetch(java.lang.Object element,
                               java.util.List prefetched)
                        throws EntityException
Specified by:
fetch in class AbstractPrefetchingPager
Throws:
EntityException


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