public class UsernameToUserTranslatingPaginationSupport extends PaginationSupport<com.atlassian.user.User>
HACK this class relies on being able to set the underlying list of items as Strings, but using inheritance to do this is evil. Needs a complete rewrite or replacement.
DEFAULT_COUNT_ON_EACH_PAGE, DEFAULT_PAGE_SIZE| Constructor and Description |
|---|
UsernameToUserTranslatingPaginationSupport(int pageSize,
int startIndexValue)
A special pagination support class to translate results of membership search to user objects.
|
| Modifier and Type | Method and Description |
|---|---|
List<com.atlassian.user.User> |
getPage()
Returns a subset of the list of items passed in, based on startIndex and the page size
|
void |
setUserAccessor(UserAccessor userAccessor) |
getCountOnEachPage, getEndIndex, getItems, getNextIndex, getNextStartIndex, getNextStartIndexes, getNiceEndIndex, getNiceStartIndex, getPageSize, getPreviousIndex, getPreviousStartIndex, getPreviousStartIndexes, getStartIndex, getStartIndexValue, getTotal, setItems, setPageSize, setStartIndex, setTotalpublic UsernameToUserTranslatingPaginationSupport(int pageSize,
int startIndexValue)
pageSize - Number of results to display on each pagestartIndexValue - Make sure you use the getStartIndexValue() to re-instate this value, and not getStartIndex()public List<com.atlassian.user.User> getPage()
PaginationSupportgetPage in interface PaginationSupport<com.atlassian.user.User>getPage in class PaginationSupport<com.atlassian.user.User>public void setUserAccessor(UserAccessor userAccessor)
Copyright © 2003–2018 Atlassian. All rights reserved.