|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@PublicApi public interface SearchContext
Represents the Project and IssueType combination which is used to determine the allowable fields and values when searching for Issues. In JIRA Schemes generally define what is customised on a per "Context" basis.
Method Summary | |
---|---|
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()
Deprecated. Use getSingleProject() instead. Since v5.2. |
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. |
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. |
void |
verify()
Verifies that all issue types and projects in the context actually still exists. |
Method Detail |
---|
boolean isForAnyProjects()
boolean isForAnyIssueTypes()
boolean isSingleProjectContext()
Project getSingleProject()
isSingleProjectContext()
to check if this is valid.
IllegalStateException
- if there is not exactly one Project in this SearchContext.isSingleProjectContext()
List getProjectCategoryIds()
List<Long> getProjectIds()
org.ofbiz.core.entity.GenericValue getOnlyProject()
getSingleProject()
instead. Since v5.2.
isSingleProjectContext()
to check if this is valid.
List<String> getIssueTypeIds()
List<IssueContext> getAsIssueContexts()
IssueContext
objects
IssueContext
. If no issue types or projects selected. A blank issue context is returned. Never null.void verify()
List<Project> getProjects()
Project
. If no projects are selected, returns an empty list.List<IssueType> getIssueTypes()
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 |