com.atlassian.confluence.user
Class UsernameToUserTranslatingPaginationSupport

java.lang.Object
  extended by bucket.core.actions.PaginationSupport
      extended by com.atlassian.confluence.user.UsernameToUserTranslatingPaginationSupport
All Implemented Interfaces:
PaginationSupport

public class UsernameToUserTranslatingPaginationSupport
extends PaginationSupport

A special pagination support class to translate results of membership search to user objects.


Field Summary
 
Fields inherited from class bucket.core.actions.PaginationSupport
DEFAULT_COUNT_ON_EACH_PAGE, DEFAULT_PAGE_SIZE
 
Constructor Summary
UsernameToUserTranslatingPaginationSupport(int pageSize, int startIndexValue)
          A special pagination support class to translate results of membership search to user objects.
 
Method Summary
 List getPage()
          Returns a subset of the list of items passed in, based on startIndex and the page size
 void setUserAccessor(UserAccessor userAccessor)
           
 
Methods inherited from class bucket.core.actions.PaginationSupport
getCountOnEachPage, getEndIndex, getItems, getNextIndex, getNextStartIndex, getNextStartIndexes, getNiceEndIndex, getNiceStartIndex, getPageSize, getPreviousIndex, getPreviousStartIndex, getPreviousStartIndexes, getStartIndex, getStartIndexValue, getTotal, setItems, setPageSize, setStartIndex, setTotal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsernameToUserTranslatingPaginationSupport

public UsernameToUserTranslatingPaginationSupport(int pageSize,
                                                  int startIndexValue)
A special pagination support class to translate results of membership search to user objects.

Parameters:
pageSize - Number of results to display on each page
startIndexValue - Make sure you use the getStartIndexValue() to re-instate this value, and not getStartIndex()
Method Detail

getPage

public List getPage()
Description copied from class: PaginationSupport
Returns a subset of the list of items passed in, based on startIndex and the page size

Specified by:
getPage in interface PaginationSupport
Overrides:
getPage in class PaginationSupport
Returns:
a subset of the list of items passed in, based on startIndex and the page size

setUserAccessor

public void setUserAccessor(UserAccessor userAccessor)


Copyright © 2003-2013 Atlassian. All Rights Reserved.