com.atlassian.jira.project
Class ProjectCache
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProjectCache
public ProjectCache(boolean refresh)
refresh
public void refresh()
refreshProjectCategories
protected void refreshProjectCategories()
refreshProjectCounter
public void refreshProjectCounter(long projectId,
long counter)
getProject
public org.ofbiz.core.entity.GenericValue getProject(Long id)
getProjectByName
public org.ofbiz.core.entity.GenericValue getProjectByName(String name)
getProjectByKey
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 getProjectsFromProjectCategory(org.ofbiz.core.entity.GenericValue projectCat)
getProjectCategoryForProject
public org.ofbiz.core.entity.GenericValue getProjectCategoryForProject(Project project)
getProjectCategoryFromProject
public org.ofbiz.core.entity.GenericValue getProjectCategoryFromProject(org.ofbiz.core.entity.GenericValue project)
getProjectsWithNoCategory
public Collection getProjectsWithNoCategory()
refreshProjectsWithNoCategory
protected void refreshProjectsWithNoCategory()
Copyright © 2002-2011 Atlassian. All Rights Reserved.