public class

ProjectCache

extends Object
java.lang.Object
   ↳ com.atlassian.jira.project.ProjectCache

Class Overview

This is a very basic cache that stores projects and components

When constructed, or when you call refresh() - it will find and cache all projects, components

Summary

Public Constructors
ProjectCache(ProjectManager projectManager, ProjectKeyStore projectKeyStore, NodeAssociationStore nodeAssociationStore)
Public Methods
Set<String> getAllProjectKeys(Long projectId)
GenericValue getProject(Long id)
GenericValue getProjectByCurrentKey(String projectKey)
GenericValue getProjectByCurrentKeyIgnoreCase(String projectKey)
@Nullable GenericValue getProjectByKey(String key)
@Nullable GenericValue getProjectByKeyIgnoreCase(String projectKey)
@Nullable GenericValue getProjectByName(String name)
Collection<GenericValue> getProjectCategories()
GenericValue getProjectCategory(Long id)
@Nullable GenericValue getProjectCategoryForProject(Project project)
@Nullable GenericValue getProjectCategoryFromProject(GenericValue project)
List<Project> getProjectObjects()
Returns a list of all Projects ordered by name.
Collection<GenericValue> getProjects()
Collection<GenericValue> getProjectsFromProjectCategory(GenericValue projectCat)
Collection<GenericValue> getProjectsWithNoCategory()
Protected Methods
void refreshProjectCategories()
void refreshProjectsWithNoCategory()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ProjectCache (ProjectManager projectManager, ProjectKeyStore projectKeyStore, NodeAssociationStore nodeAssociationStore)

Public Methods

public Set<String> getAllProjectKeys (Long projectId)

public GenericValue getProject (Long id)

public GenericValue getProjectByCurrentKey (String projectKey)

public GenericValue getProjectByCurrentKeyIgnoreCase (String projectKey)

@Nullable public GenericValue getProjectByKey (String key)

@Nullable public GenericValue getProjectByKeyIgnoreCase (String projectKey)

@Nullable public GenericValue getProjectByName (String name)

public Collection<GenericValue> getProjectCategories ()

public GenericValue getProjectCategory (Long id)

@Nullable public GenericValue getProjectCategoryForProject (Project project)

@Nullable public GenericValue getProjectCategoryFromProject (GenericValue project)

public List<Project> getProjectObjects ()

Returns a list of all Projects ordered by name.

Returns
  • a list of all Projects ordered by name.

public Collection<GenericValue> getProjects ()

public Collection<GenericValue> getProjectsFromProjectCategory (GenericValue projectCat)

public Collection<GenericValue> getProjectsWithNoCategory ()

Protected Methods

protected void refreshProjectCategories ()

protected void refreshProjectsWithNoCategory ()