public class

PagerManager

extends Object
java.lang.Object
   ↳ com.atlassian.jira.issue.pager.PagerManager

Summary

Public Constructors
PagerManager(ApplicationProperties applicationProperties, SessionSearchObjectManagerFactory sessionSearchObjectManagerFactory)
Public Methods
void clearPager()
Removes the pager from the session.
NextPreviousPager getPager()
Returns pager stored in the session or a new pager if pager not found in the session.
void updatePager(NextPreviousPager pager, SearchRequest searchRequest, User user, String currentKey)
Update a pager if the search request passed is different from the searchrequest that is already there.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PagerManager (ApplicationProperties applicationProperties, SessionSearchObjectManagerFactory sessionSearchObjectManagerFactory)

Public Methods

public void clearPager ()

Removes the pager from the session.

public NextPreviousPager getPager ()

Returns pager stored in the session or a new pager if pager not found in the session.

Returns
  • pager from session if found, otherwise new pager

public void updatePager (NextPreviousPager pager, SearchRequest searchRequest, User user, String currentKey)

Update a pager if the search request passed is different from the searchrequest that is already there.

Parameters
pager The current pager to update
searchRequest The current search request in the application
user The current remote user
currentKey The current issue key that we are viewing