com.atlassian.user.impl.ldap.search.page
Class AbstractLDAPPager
java.lang.Object
com.atlassian.user.search.page.AbstractPrefetchingPager
com.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
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 |
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
AbstractLDAPPager
protected AbstractLDAPPager(LdapContextFactory repository,
LDAPPagerInfo info)
AbstractLDAPPager
public AbstractLDAPPager()
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.