com.atlassian.user.search.page
Class PagerUtils
java.lang.Object
com.atlassian.user.search.page.PagerUtils
- public class PagerUtils
- extends java.lang.Object
Util class for making it easier to work with paging iterators
TODO: Roll these methods into an extension of the Pager interface
|
Method Summary |
static int |
count(Pager pager)
|
static java.lang.String |
extractSearchResultName(java.lang.String distinguishedName)
For example, for cn=jsmith,dc=atlassian,dc=com this returns jsmith. |
static java.util.List |
toList(Pager pager)
|
static java.util.List |
toListOfEntityNames(Pager pager)
Deprecated. since 1.25. In general, the Pager should not be used wherever possible. Manually extract entity names
from the Pager itself if it is still required. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
public static final org.apache.log4j.Category log
EMPTY_PAGER
public static final Pager EMPTY_PAGER
ESCAPEDCOMMA
public static final java.lang.String ESCAPEDCOMMA
- See Also:
- Constant Field Values
PagerUtils
public PagerUtils()
toList
public static java.util.List toList(Pager pager)
count
public static int count(Pager pager)
toListOfEntityNames
public static java.util.List toListOfEntityNames(Pager pager)
- Deprecated. since 1.25. In general, the Pager should not be used wherever possible. Manually extract entity names
from the Pager itself if it is still required.
extractSearchResultName
public static java.lang.String extractSearchResultName(java.lang.String distinguishedName)
- For example, for cn=jsmith,dc=atlassian,dc=com this returns jsmith.
If the distinguishedName is not well formed, this will be logged and it will be returned as is
- Parameters:
distinguishedName -
Copyright © 2005-2008 Atlassian Software Systems Pty Ltd. All Rights Reserved.