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.

  • Constructor Details

    • 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 Details

    • 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 interface PaginationSupport<com.atlassian.user.User>
      Overrides:
      getPage in class PaginationSupport<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)