Class SearchRequestParamsImpl
java.lang.Object
com.atlassian.jira.plugin.searchrequestview.SearchRequestParamsImpl
- All Implemented Interfaces:
IssueViewRequestParams
,SearchRequestParams
Default implmentation of @see com.atlassian.jira.plugin.searchrequestview.SearchRequestParams.
-
Constructor Summary
ConstructorsConstructorDescriptionSearchRequestParamsImpl
(javax.servlet.http.HttpSession session, PagerFilter pagerFilter, Map<String, ?> otherParams, IssueViewFieldParams issueViewFieldParams, String userAgent, String fileExtension) -
Method Summary
Modifier and TypeMethodDescriptionconvertSessionToMap
(javax.servlet.http.HttpSession session) Used to get a handle on a pager filter that will have its start and max values setup based on either system defaults or possibly overridden by request parameters ('tempMax' and 'pager/start').Used to access information that may have been stored in the HttpSession.boolean
void
setReturnMax
(boolean returnMax)
-
Constructor Details
-
SearchRequestParamsImpl
public SearchRequestParamsImpl(javax.servlet.http.HttpSession session, PagerFilter pagerFilter, Map<String, ?> otherParams, IssueViewFieldParams issueViewFieldParams, String userAgent, String fileExtension)
-
-
Method Details
-
convertSessionToMap
-
getSession
Description copied from interface:SearchRequestParams
Used to access information that may have been stored in the HttpSession. Values stored in the session cannot be modified in any way.- Specified by:
getSession
in interfaceSearchRequestParams
- Returns:
- map containing a shallow copy of the HttpSession
-
getPagerFilter
Description copied from interface:SearchRequestParams
Used to get a handle on a pager filter that will have its start and max values setup based on either system defaults or possibly overridden by request parameters ('tempMax' and 'pager/start').- Specified by:
getPagerFilter
in interfaceSearchRequestParams
- Returns:
- PagerFilter with appropriate max and start values set.
-
getUserAgent
- Specified by:
getUserAgent
in interfaceSearchRequestParams
- Returns:
- the user agent string from the request
-
getIssueViewFieldParams
- Specified by:
getIssueViewFieldParams
in interfaceIssueViewRequestParams
-
setReturnMax
public void setReturnMax(boolean returnMax) - Specified by:
setReturnMax
in interfaceSearchRequestParams
- Parameters:
returnMax
- true if the search should return up to the maximum number of issues configured for the 'jira.search.views.max.limit' application property, even if a greater value is set as the max on the pager filter.
-
isReturnMax
public boolean isReturnMax()- Specified by:
isReturnMax
in interfaceSearchRequestParams
- Returns:
- true if the search should return up to the maximum number of issues configured for the 'jira.search.views.max.limit' application property, even if a greater value is set as the max on the pager filter.
-
getFileExtension
- Specified by:
getFileExtension
in interfaceSearchRequestParams
- Returns:
- Desired file extension for attachment.
-