public class SearchContextImpl extends Object implements SearchContext
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
SearchContextImpl.SearchContextImplBuilder  | 
| Constructor and Description | 
|---|
SearchContextImpl()  | 
SearchContextImpl(List<Long> projectCategoryIds,
                 List<Long> projectIds,
                 List<String> issueTypeIds)  | 
SearchContextImpl(SearchContext searchContext)  | 
| Modifier and Type | Method and Description | 
|---|---|
static SearchContextImpl.SearchContextImplBuilder | 
builder()  | 
boolean | 
equals(Object o)  | 
List<IssueContext> | 
getAsIssueContexts()
Gets the search context as a list of  
IssueContext objects | 
List<String> | 
getIssueTypeIds()
Issue ids as Strings 
 | 
List<IssueType> | 
getIssueTypes()
Returns issue types objects in this SearchContext 
 | 
List<Long> | 
getProjectCategoryIds()
Returns selected category IDs. 
 | 
List<Long> | 
getProjectIds()
Project ids as Longs. 
 | 
List<Project> | 
getProjects()
Returns project objects in this SearchContext 
 | 
Project | 
getSingleProject()
Returns the single Project for this SearchContext. 
 | 
int | 
hashCode()  | 
boolean | 
isForAnyIssueTypes()
Returns true if no specific issue types have been selected 
 | 
boolean | 
isForAnyProjects()
Returns whether the context is global or not. 
 | 
boolean | 
isSingleProjectContext()
Returns true if there is exactly one Project in this SearchContext. 
 | 
String | 
toString()  | 
void | 
verify()
Verifies that all issue types and projects in the context actually still exists. 
 | 
public SearchContextImpl()
public SearchContextImpl(List<Long> projectCategoryIds, List<Long> projectIds, List<String> issueTypeIds)
public SearchContextImpl(SearchContext searchContext)
public boolean isForAnyProjects()
SearchContextisForAnyProjects in interface SearchContextpublic boolean isForAnyIssueTypes()
SearchContextisForAnyIssueTypes in interface SearchContextpublic boolean isSingleProjectContext()
SearchContextisSingleProjectContext in interface SearchContextpublic Project getSingleProject()
SearchContext
 You should first call SearchContext.isSingleProjectContext() to check if this is valid.
getSingleProject in interface SearchContextSearchContext.isSingleProjectContext()@Nonnull public List<Long> getProjectCategoryIds()
SearchContextgetProjectCategoryIds in interface SearchContext@Nonnull public List<Long> getProjectIds()
SearchContextgetProjectIds in interface SearchContext@Nonnull public List<String> getIssueTypeIds()
SearchContextgetIssueTypeIds in interface SearchContextpublic List<IssueContext> getAsIssueContexts()
SearchContextIssueContext objectsgetAsIssueContexts in interface SearchContextIssueContext. If no issue types or projects selected. A blank issue context is returned. Never null.public void verify()
SearchContextverify in interface SearchContext@Nonnull public List<Project> getProjects()
SearchContextgetProjects in interface SearchContextProject. If no projects are selected, returns an empty list.@Nonnull public List<IssueType> getIssueTypes()
SearchContextgetIssueTypes in interface SearchContextIssueType. If no issue types are selected, returns an empty listpublic static SearchContextImpl.SearchContextImplBuilder builder()
Copyright © 2002-2024 Atlassian. All Rights Reserved.