com.atlassian.jira.project
Class ProjectCache

java.lang.Object
  extended by com.atlassian.jira.project.ProjectCache

public class ProjectCache
extends Object

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


Constructor Summary
ProjectCache(ProjectManager projectManager, ProjectKeyStore projectKeyStore, NodeAssociationStore nodeAssociationStore)
           
 
Method Summary
 Set<String> getAllProjectKeys(Long projectId)
           
 org.ofbiz.core.entity.GenericValue getProject(Long id)
           
 org.ofbiz.core.entity.GenericValue getProjectByCurrentKey(String projectKey)
           
 org.ofbiz.core.entity.GenericValue getProjectByCurrentKeyIgnoreCase(String projectKey)
           
 org.ofbiz.core.entity.GenericValue getProjectByKey(String key)
           
 org.ofbiz.core.entity.GenericValue getProjectByKeyIgnoreCase(String projectKey)
           
 org.ofbiz.core.entity.GenericValue getProjectByName(String name)
           
 Collection<org.ofbiz.core.entity.GenericValue> getProjectCategories()
           
 org.ofbiz.core.entity.GenericValue getProjectCategory(Long id)
           
 org.ofbiz.core.entity.GenericValue getProjectCategoryForProject(Project project)
           
 org.ofbiz.core.entity.GenericValue getProjectCategoryFromProject(org.ofbiz.core.entity.GenericValue project)
           
 List<Project> getProjectObjects()
          Returns a list of all Projects ordered by name.
 Collection<org.ofbiz.core.entity.GenericValue> getProjects()
           
 Collection<org.ofbiz.core.entity.GenericValue> getProjectsFromProjectCategory(org.ofbiz.core.entity.GenericValue projectCat)
           
 Collection<org.ofbiz.core.entity.GenericValue> getProjectsWithNoCategory()
           
protected  void refreshProjectCategories()
           
protected  void refreshProjectsWithNoCategory()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectCache

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

refreshProjectCategories

protected void refreshProjectCategories()

getProject

public org.ofbiz.core.entity.GenericValue getProject(Long id)

getProjectByName

@Nullable
public org.ofbiz.core.entity.GenericValue getProjectByName(String name)

getProjectByKey

@Nullable
public org.ofbiz.core.entity.GenericValue getProjectByKey(String key)

getProjects

public Collection<org.ofbiz.core.entity.GenericValue> getProjects()

getProjectObjects

public List<Project> getProjectObjects()
Returns a list of all Projects ordered by name.

Returns:
a list of all Projects ordered by name.

getProjectCategories

public Collection<org.ofbiz.core.entity.GenericValue> getProjectCategories()

getProjectCategory

public org.ofbiz.core.entity.GenericValue getProjectCategory(Long id)

getProjectsFromProjectCategory

public Collection<org.ofbiz.core.entity.GenericValue> getProjectsFromProjectCategory(org.ofbiz.core.entity.GenericValue projectCat)

getProjectCategoryForProject

@Nullable
public org.ofbiz.core.entity.GenericValue getProjectCategoryForProject(Project project)

getProjectCategoryFromProject

@Nullable
public org.ofbiz.core.entity.GenericValue getProjectCategoryFromProject(org.ofbiz.core.entity.GenericValue project)

getProjectsWithNoCategory

public Collection<org.ofbiz.core.entity.GenericValue> getProjectsWithNoCategory()

refreshProjectsWithNoCategory

protected void refreshProjectsWithNoCategory()

getProjectByCurrentKeyIgnoreCase

public org.ofbiz.core.entity.GenericValue getProjectByCurrentKeyIgnoreCase(String projectKey)

getProjectByKeyIgnoreCase

@Nullable
public org.ofbiz.core.entity.GenericValue getProjectByKeyIgnoreCase(String projectKey)

getProjectByCurrentKey

public org.ofbiz.core.entity.GenericValue getProjectByCurrentKey(String projectKey)

getAllProjectKeys

public Set<String> getAllProjectKeys(Long projectId)


Copyright © 2002-2014 Atlassian. All Rights Reserved.