|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.issue.search.SearchContextImpl
public class SearchContextImpl
Field Summary | |
---|---|
protected List<String> |
issueTypeIds
|
protected List<IssueType> |
issueTypes
|
protected List |
projectCategoryIds
|
protected List<Long> |
projectIds
|
protected List<Project> |
projects
|
Constructor Summary | |
---|---|
SearchContextImpl()
|
|
SearchContextImpl(List projectCategoryIds,
List projectIds,
List issueTypeIds)
|
|
SearchContextImpl(SearchContext searchContext)
|
Method Summary | |
---|---|
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 |
org.ofbiz.core.entity.GenericValue |
getOnlyProject()
Returns the single Project for this SearchContext. |
List |
getProjectCategoryIds()
Returns selected categories |
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected List projectCategoryIds
protected List<Long> projectIds
protected List<String> issueTypeIds
protected List<Project> projects
protected List<IssueType> issueTypes
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()
SearchContext
isSingleProjectContext
in interface SearchContext
public Project getSingleProject()
SearchContext
SearchContext.isSingleProjectContext()
to check if this is valid.
getSingleProject
in interface SearchContext
SearchContext.isSingleProjectContext()
public List getProjectCategoryIds()
SearchContext
getProjectCategoryIds
in interface SearchContext
public List<Long> getProjectIds()
SearchContext
getProjectIds
in interface SearchContext
public org.ofbiz.core.entity.GenericValue getOnlyProject()
SearchContext
SearchContext.isSingleProjectContext()
to check if this is valid.
getOnlyProject
in interface SearchContext
public List<String> getIssueTypeIds()
SearchContext
getIssueTypeIds
in interface SearchContext
public List<IssueContext> 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()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public List<Project> getProjects()
SearchContext
getProjects
in interface SearchContext
Project
. If no projects are selected, returns an empty list.public List<IssueType> getIssueTypes()
SearchContext
getIssueTypes
in interface SearchContext
IssueType
. If no issue types are selected, returns an empty list
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |