Class DefaultSessionSearchService
java.lang.Object
com.atlassian.jira.components.issueviewer.service.DefaultSessionSearchService
- All Implemented Interfaces:
SessionSearchService
- Since:
- v5.2
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultSessionSearchService(ApplicationProperties applicationProperties, SessionSearchObjectManagerFactory sessionSearchObjectManagerFactory, SearchRequestService searchRequestService, SearchService searchService, JiraAuthenticationContext authenticationContext, SystemFilterService systemFilterService) -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the current session search request.voidsetSessionSearch(String jql, Long filterId, int startIndex, int max) Stores a search request in the session.
-
Constructor Details
-
DefaultSessionSearchService
@Inject public DefaultSessionSearchService(ApplicationProperties applicationProperties, SessionSearchObjectManagerFactory sessionSearchObjectManagerFactory, SearchRequestService searchRequestService, SearchService searchService, JiraAuthenticationContext authenticationContext, SystemFilterService systemFilterService)
-
-
Method Details
-
getPagerFilter
- Specified by:
getPagerFilterin interfaceSessionSearchService- Returns:
- the
PagerFilterfrom the current user's session.
-
getSessionSearch
Description copied from interface:SessionSearchServiceRetrieves the current session search request.Must be called from within a servlet request.
- Specified by:
getSessionSearchin interfaceSessionSearchService- Returns:
- the current session search request or
null.
-
setSessionSearch
Description copied from interface:SessionSearchServiceStores 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.- Specified by:
setSessionSearchin interfaceSessionSearchService- Parameters:
jql- The current jql being requested.filterId- The ID of the filter (or null if there is no filter)startIndex- pager start indexmax- results to display
-