public class ProjectCache extends Object
When constructed, or when you call refresh() - it will find and cache all projects and project categories
Constructor and Description |
---|
ProjectCache(ProjectManager projectManager,
ProjectKeyStore projectKeyStore,
NodeAssociationStore nodeAssociationStore) |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAllProjectKeys(Long projectId) |
List<Project> |
getArchivedProjects() |
Project |
getProject(Long id) |
Project |
getProjectByCurrentKey(String projectKey) |
Project |
getProjectByCurrentKeyIgnoreCase(String projectKey) |
Project |
getProjectByKey(String key) |
Project |
getProjectByKeyIgnoreCase(String projectKey) |
Project |
getProjectByName(String name) |
Collection<ProjectCategory> |
getProjectCategories() |
ProjectCategory |
getProjectCategory(Long id) |
ProjectCategory |
getProjectCategoryForProject(Project project) |
ProjectCategory |
getProjectCategoryFromProject(Project project) |
List<Project> |
getProjectObjects()
Returns a list of all Projects ordered by name.
|
Collection<Project> |
getProjects() |
Collection<Project> |
getProjectsFromProjectCategory(Long projectCategoryId) |
Collection<Project> |
getProjectsWithNoCategory() |
protected void |
refreshProjectCategories() |
protected void |
refreshProjectsWithNoCategory() |
public ProjectCache(ProjectManager projectManager, ProjectKeyStore projectKeyStore, NodeAssociationStore nodeAssociationStore)
protected void refreshProjectCategories()
public Collection<Project> getProjects()
public List<Project> getProjectObjects()
public Collection<ProjectCategory> getProjectCategories()
@Nullable public ProjectCategory getProjectCategory(Long id)
public Collection<Project> getProjectsFromProjectCategory(Long projectCategoryId)
@Nullable public ProjectCategory getProjectCategoryForProject(Project project)
@Nullable public ProjectCategory getProjectCategoryFromProject(Project project)
public Collection<Project> getProjectsWithNoCategory()
protected void refreshProjectsWithNoCategory()
Copyright © 2002-2021 Atlassian. All Rights Reserved.