|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.search.SearchContextImpl
Field Summary | |
static SearchContext |
GLOBAL_SEARCH_CONTEXT
|
protected List |
issueTypeIds
|
protected List |
projectCategoryIds
|
protected List |
projectIds
|
Constructor Summary | |
SearchContextImpl()
|
|
SearchContextImpl(List projectCategoryIds,
List projectIds,
List issueTypeIds)
|
|
SearchContextImpl(SearchContext searchContext)
|
Method Summary | |
boolean |
equals(Object o)
|
List |
getAsIssueContexts()
Gets the search context as a list of IssueContext objects |
List |
getIssueTypeIds()
Issue ids as Strings |
org.ofbiz.core.entity.GenericValue |
getOnlyProject()
|
List |
getProjectCategoryIds()
Returns selected categories |
List |
getProjectIds()
Project ids as Longs. |
int |
hashCode()
|
boolean |
isForAnyIssueTypes()
Returns true if no specific issue types have been selected |
boolean |
isForAnyProjects()
Returns whether thr context is global or not. |
boolean |
isSingleProjectContext()
|
String |
toString()
|
void |
verify()
Verifies that all issue types and projects in the context actually still exists. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final SearchContext GLOBAL_SEARCH_CONTEXT
protected List projectCategoryIds
protected List projectIds
protected List issueTypeIds
Constructor Detail |
public SearchContextImpl()
public SearchContextImpl(List projectCategoryIds, List projectIds, List issueTypeIds)
public SearchContextImpl(SearchContext searchContext)
Method Detail |
public boolean isForAnyProjects()
SearchContext
isForAnyProjects
in interface SearchContext
public boolean isForAnyIssueTypes()
SearchContext
isForAnyIssueTypes
in interface SearchContext
public boolean isSingleProjectContext()
isSingleProjectContext
in interface SearchContext
public List getProjectCategoryIds()
SearchContext
getProjectCategoryIds
in interface SearchContext
public List getProjectIds()
SearchContext
getProjectIds
in interface SearchContext
Collections.EMPTY_LIST
is no project idspublic org.ofbiz.core.entity.GenericValue getOnlyProject()
getOnlyProject
in interface SearchContext
public List getIssueTypeIds()
SearchContext
getIssueTypeIds
in interface SearchContext
Collections.EMPTY_LIST
is no issue typespublic List getAsIssueContexts()
SearchContext
IssueContext
objects
getAsIssueContexts
in interface SearchContext
IssueContext
. If no issue types or projects selected. A blank issue context is returned. Never null.public void verify()
SearchContext
verify
in interface SearchContext
public String toString()
public boolean equals(Object o)
public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |