public interface

SearchRequestFactory

com.atlassian.jira.issue.search.SearchRequestFactory
Known Indirect Subclasses

Class Overview

Factory for constructing SearchRequests. The resulting SearchRequests are not persisted.

Summary

Public Methods
SearchRequest createFromParameters(SearchRequest oldSearchRequest, User searchUser, ActionParams parameterMap)
Takes a user and a raw map of request parameters that are used to create an object representation of the search request.
SearchRequest createFromQuery(SearchRequest oldSearchRequest, User searchUser, Query query)
Takes a user, a SearchQuery and an original search request that are used to create an object representation of the search request.

Public Methods

public SearchRequest createFromParameters (SearchRequest oldSearchRequest, User searchUser, ActionParams parameterMap)

Takes a user and a raw map of request parameters that are used to create an object representation of the search request.

Parameters
oldSearchRequest The original SearchRequest, if provided will be cloned as the basis for the new search request. The search requests Query will always be populated from the passed in parameters. If this is the same as the oldSearchRequest then the new search requests modified flag will be false. This can be null.
searchUser The user that is searching
parameterMap The raw request parameters that will be passed through the populateFromParams(User, com.atlassian.jira.issue.transport.FieldValuesHolder, com.atlassian.jira.issue.transport.ActionParams) and getSearchClause(User, com.atlassian.jira.issue.transport.FieldValuesHolder) methods to create a search clause. The parameters will also be used to create an OrderBy clause via the getOrderByClause(java.util.Map) call. Must not be null.
Returns
  • a new SearchRequest based off given parameters.

public SearchRequest createFromQuery (SearchRequest oldSearchRequest, User searchUser, Query query)

Takes a user, a SearchQuery and an original search request that are used to create an object representation of the search request.

Parameters
oldSearchRequest The original SearchRequest, if provided will be cloned as the basis for the new search request. The search requests Query will always be populated from the passed in parameters. If this is the same as the oldSearchRequest then the new search requests modified flag will be false. This can be null.
searchUser The user that is searching
query the query that defines the search requests where and order by clauses.
Returns
  • a new SearchRequest based off given parameters.