@Service public class QueryToProjectMapper extends Object implements GreenHopperCache
| Constructor and Description |
|---|
QueryToProjectMapper(ProjectContextVisitorProvider projectContextVisitorProvider,
com.atlassian.jira.bc.issue.search.SearchService jiraSearchService,
CacheFactoryManager cacheFactoryManager,
com.atlassian.jira.bc.project.ProjectService projectService) |
| Modifier and Type | Method and Description |
|---|---|
void |
flushCache()
Invoked when all caches in the plugin need to be cleared.
|
Set<Long> |
getProjectIdsForQuery(com.atlassian.jira.user.ApplicationUser user,
com.atlassian.query.Query query,
boolean explicit) |
Set<com.atlassian.jira.project.Project> |
getProjectsForQuery(com.atlassian.jira.user.ApplicationUser user,
com.atlassian.query.Query query,
boolean explicit)
Get the projects for a given query
|
void |
onProjectDeletedEvent(com.atlassian.jira.event.ProjectDeletedEvent event) |
@Inject public QueryToProjectMapper(ProjectContextVisitorProvider projectContextVisitorProvider, com.atlassian.jira.bc.issue.search.SearchService jiraSearchService, CacheFactoryManager cacheFactoryManager, com.atlassian.jira.bc.project.ProjectService projectService)
public Set<com.atlassian.jira.project.Project> getProjectsForQuery(com.atlassian.jira.user.ApplicationUser user, com.atlassian.query.Query query, boolean explicit)
user - user which performs checkquery - the query which will be evaluatedexplicit - indicates whether only explicitly mentioned projects should be available in the resultpublic Set<Long> getProjectIdsForQuery(com.atlassian.jira.user.ApplicationUser user, com.atlassian.query.Query query, boolean explicit)
public void flushCache()
GreenHopperCacheflushCache in interface GreenHopperCache@EventListener public void onProjectDeletedEvent(com.atlassian.jira.event.ProjectDeletedEvent event)
Copyright © 2007–2025 Atlassian. All rights reserved.