com.atlassian.jira.issue.search
Interface SearchRequestFactory

All Known Implementing Classes:
DefaultSearchRequestFactory

public interface SearchRequestFactory

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

Since:
v3.13

Method Summary
 SearchRequest create(SearchRequest oldSearchRequest, User searchUser, FieldValuesHolder params, SearchContext searchContext)
          Takes a user and a FieldValuesHolder of parameters that are used to create a object representation of the search request.
 SearchRequest getSearchRequestWithSearchSorts(Map parameterMap, User searchUser)
          Takes a user and a Map of request parameters that are used to create a object representation of the search request.
 

Method Detail

create

SearchRequest create(SearchRequest oldSearchRequest,
                     User searchUser,
                     FieldValuesHolder params,
                     SearchContext searchContext)
Takes a user and a FieldValuesHolder of parameters that are used to create a object representation of the search request.

Parameters:
oldSearchRequest - The original SearchRequest
searchUser - The user that is searching
params - parameters to search for. Must not be null
searchContext - the search context. Used to determined available searchers. If it's null, a Global search context will be used
Returns:
a new SearchRequest based off given parameters.

getSearchRequestWithSearchSorts

SearchRequest getSearchRequestWithSearchSorts(Map parameterMap,
                                              User searchUser)
Takes a user and a Map of request parameters that are used to create a object representation of the search request.

Parameters:
parameterMap - Generally this will be obtained by calling ServletRequest.getParameterMap()
searchUser - The user that is searching
Returns:
A search request representing the parameters that were passed


Copyright © 2002-2008 Atlassian. All Rights Reserved.