public abstract class SearchQueryBackedResource extends AbstractResource
Modifier and Type | Field and Description |
---|---|
protected JiraAuthenticationContext |
authenticationContext |
protected ChartUtils |
chartUtils |
protected PermissionManager |
permissionManager |
protected static String |
QUERY_STRING |
protected SearchService |
searchService |
Constructor and Description |
---|
SearchQueryBackedResource(ChartUtils chartUtils,
JiraAuthenticationContext authenticationContext,
SearchService searchService,
PermissionManager permissionManager,
VelocityRequestContextFactory velocityRequestContextFactory) |
Modifier and Type | Method and Description |
---|---|
protected String |
getFilterTitle(Map<String,Object> params)
Get the name to display for the given query.
|
protected String |
getFilterUrl(Map<String,Object> params)
Get the url to send people to for this search.
|
protected SearchRequest |
getSearchRequestAndValidate(String queryString,
Collection<ValidationError> errors,
Map<String,Object> params)
Method used for retrieving/building a SearchRequest and validating params.
|
createErrorResponse, createIndexingUnavailableResponse, createValidationResponse
protected static final String QUERY_STRING
protected final ChartUtils chartUtils
protected final JiraAuthenticationContext authenticationContext
protected final PermissionManager permissionManager
protected final SearchService searchService
public SearchQueryBackedResource(ChartUtils chartUtils, JiraAuthenticationContext authenticationContext, SearchService searchService, PermissionManager permissionManager, VelocityRequestContextFactory velocityRequestContextFactory)
protected SearchRequest getSearchRequestAndValidate(String queryString, Collection<ValidationError> errors, Map<String,Object> params)
queryString
- a String containing a search criteria. Starts with "filter-" for a search request, "project-"
for a project or "jql-" for a jql equest.errors
- a collection of ValidationError
object
containing all validation message keys.params
- a map to populate with with appropriate entities.SearchRequest
that will restrict the search to the given
criteriaprotected String getFilterTitle(Map<String,Object> params)
params
- The params created during chart generation process.Copyright © 2002-2015 Atlassian. All Rights Reserved.