Package com.atlassian.confluence.user
Class UsernameToUserTranslatingPaginationSupport
- java.lang.Object
-
- bucket.core.actions.PaginationSupport<com.atlassian.user.User>
-
- com.atlassian.confluence.user.UsernameToUserTranslatingPaginationSupport
-
- All Implemented Interfaces:
PaginationSupport<com.atlassian.user.User>
public class UsernameToUserTranslatingPaginationSupport extends PaginationSupport<com.atlassian.user.User>
A special pagination support class to translate results of membership search to user objects.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.
-
-
Field Summary
-
Fields inherited from class bucket.core.actions.PaginationSupport
DEFAULT_COUNT_ON_EACH_PAGE, DEFAULT_PAGE_SIZE
-
-
Constructor Summary
Constructors Constructor Description UsernameToUserTranslatingPaginationSupport(int pageSize, int startIndexValue)
A special pagination support class to translate results of membership search to user objects.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<com.atlassian.user.User>
getPage()
Returns a subset of the list of items passed in, based on startIndex and the page sizevoid
setUserAccessor(UserAccessor userAccessor)
-
Methods inherited from class bucket.core.actions.PaginationSupport
getItems, getNextStartIndex, getNextStartIndexes, getNiceEndIndex, getNiceStartIndex, getPageSize, getPreviousStartIndex, getPreviousStartIndexes, getStartIndex, getStartIndexValue, getTotal, setItems, setPageSize, setStartIndex, setTotal
-
-
-
-
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 pagestartIndexValue
- Make sure you use the getStartIndexValue() to re-instate this value, and not getStartIndex()
-
-
Method Detail
-
getPage
public List<com.atlassian.user.User> 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 interfacePaginationSupport<com.atlassian.user.User>
- Overrides:
getPage
in classPaginationSupport<com.atlassian.user.User>
- Returns:
- a subset of the list of items passed in, based on startIndex and the page size
-
setUserAccessor
public void setUserAccessor(UserAccessor userAccessor)
-
-