java.lang.Object | |
↳ | com.atlassian.jira.mock.issue.search.MockSearchContext |
Simple search context for testing. Most methods don't actually work.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the search context as a list of
IssueContext objects | |||||||||||
Issue ids as Strings
| |||||||||||
Returns issue types objects in this SearchContext
| |||||||||||
Returns the single Project for this SearchContext.
| |||||||||||
Returns selected categories
| |||||||||||
Project ids as Longs.
| |||||||||||
Returns project objects in this SearchContext
| |||||||||||
Returns the single Project for this SearchContext.
| |||||||||||
Returns true if no specific issue types have been selected
| |||||||||||
Returns whether the context is global or not.
| |||||||||||
Returns true if there is exactly one Project in this SearchContext.
| |||||||||||
Verifies that all issue types and projects in the context actually still exists.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Gets the search context as a list of IssueContext
objects
IssueContext
. If no issue types or projects selected. A blank issue context is returned. Never null.
Issue ids as Strings
Returns issue types objects in this SearchContext
IssueType
. If no issue types are selected, returns an empty list
Returns the single Project for this SearchContext.
You should first call isSingleProjectContext()
to check if this is valid.
Returns selected categories
Project ids as Longs.
Returns project objects in this SearchContext
Project
. If no projects are selected, returns an empty list.
Returns the single Project for this SearchContext.
You should first call isSingleProjectContext()
to check if this is valid.
Returns true if no specific issue types have been selected
Returns whether the context is global or not. A context is global when there are no project restrictions and no project category restrictions.
Returns true if there is exactly one Project in this SearchContext.
Verifies that all issue types and projects in the context actually still exists. This might not be the case. Also removes any projects or issue types from this SearchContext that do not (any longer) exist in the backing store.