Class MockIssueSearcher<T extends SearchableField>
java.lang.Object
com.atlassian.jira.issue.search.searchers.MockIssueSearcher<T>
- All Implemented Interfaces:
IssueSearcher<T>
- Direct Known Subclasses:
MockCustomFieldSearcher
,MockSystemSearcher
public class MockIssueSearcher<T extends SearchableField>
extends Object
implements IssueSearcher<T>
A simple mock implementation of the
IssueSearcher
interface for
testsing.- Since:
- v4.0
-
Field Summary
Fields inherited from interface com.atlassian.jira.issue.search.searchers.IssueSearcher
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getField()
getId()
Provides an object that contains information about the Searcher.Provides an object that will allow you to transform raw request parameters to field holder values and field holder values toClause
search representations.Provides an object that will allow you to render the edit and view html for a searcher.int
hashCode()
void
Initialises the searcher with a given field.void
setInformation
(SearcherInformation<T> information) void
setRenderer
(SearchRenderer renderer)
-
Constructor Details
-
MockIssueSearcher
-
-
Method Details
-
getId
-
setInformation
-
init
Description copied from interface:IssueSearcher
Initialises the searcher with a given field.- Specified by:
init
in interfaceIssueSearcher<T extends SearchableField>
- Parameters:
field
- the field object. This may be null. (So you can have searchers on non-fields)
-
getField
-
getSearchInformation
Description copied from interface:IssueSearcher
Provides an object that contains information about the Searcher.- Specified by:
getSearchInformation
in interfaceIssueSearcher<T extends SearchableField>
- Returns:
- the search information provider for this searcher.
-
getSearchInputTransformer
Description copied from interface:IssueSearcher
Provides an object that will allow you to transform raw request parameters to field holder values and field holder values toClause
search representations.- Specified by:
getSearchInputTransformer
in interfaceIssueSearcher<T extends SearchableField>
- Returns:
- the search input handler for this searcher.
-
getSearchRenderer
Description copied from interface:IssueSearcher
Provides an object that will allow you to render the edit and view html for a searcher. This also provides methods that indicate if the view and edit methods should be invoked.- Specified by:
getSearchRenderer
in interfaceIssueSearcher<T extends SearchableField>
- Returns:
- the search renderer for this searcher.
-
setRenderer
-
equals
-
hashCode
public int hashCode()
-