Interface SessionSearchService
- All Known Implementing Classes:
DefaultSessionSearchService
public interface SessionSearchService
Utility for working with session search.
- Since:
- v5.2
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the current session search request.voidsetSessionSearch(String jql, Long filterId, int start, int max) Stores a search request in the session.
-
Method Details
-
getPagerFilter
PagerFilter getPagerFilter()- Returns:
- the
PagerFilterfrom the current user's session.
-
getSessionSearch
SearchRequest getSessionSearch()Retrieves the current session search request.Must be called from within a servlet request.
- Returns:
- the current session search request or
null.
-
setSessionSearch
Stores a search request in the session. If a filter is requested and the user has permission to access it, it is retrieved from the database and is used as the basis for the session search. The session search JQL is then set to the given JQL (if any). If no filter is requested, the given JQL is simply used.- Parameters:
jql- The current jql being requested.filterId- The ID of the filter (or null if there is no filter)start- pager start indexmax- results to display
-