|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.project.AbstractProjectManager com.atlassian.jira.project.CachingProjectManager
Constructor Summary | |
|
CachingProjectManager(ProjectManager decoratedProjectManager)
Normal constructor. |
protected |
CachingProjectManager(ProjectManager decoratedProjectManager,
boolean updateCache)
This constructor is to allow test cases to fire up a caching project manager without instantiating the internal project cache. |
Method Summary | |
void |
decreaseVersionSequence(GenericValue version)
. |
GenericValue |
getComponent(GenericValue project,
java.lang.String name)
|
GenericValue |
getComponent(java.lang.Long id)
|
java.util.Collection |
getComponents(GenericValue project)
|
long |
getNextId(GenericValue project)
Get the next ID from this project (transactional) |
GenericValue |
getProject(java.lang.Long id)
|
GenericValue |
getProjectByKey(java.lang.String key)
|
GenericValue |
getProjectByName(java.lang.String name)
|
java.util.Collection |
getProjectCategories()
Get all ProjectCategories. |
GenericValue |
getProjectCategory(java.lang.Long id)
|
GenericValue |
getProjectCategoryFromProject(GenericValue project)
|
java.util.Collection |
getProjects()
Return all projects |
java.util.Collection |
getProjectsFromProjectCategory(GenericValue projectCategory)
|
java.util.Collection |
getProjectsWithNoCategory()
|
GenericValue |
getVersion(GenericValue project,
java.lang.String name)
|
GenericValue |
getVersion(java.lang.Long id)
|
java.util.Collection |
getVersions(GenericValue project)
|
java.util.Collection |
getVersionsArchived(GenericValue project)
|
java.util.Collection |
getVersionsReleased(GenericValue project)
|
java.util.Collection |
getVersionsReleased(GenericValue project,
boolean includeArchived)
|
java.util.Collection |
getVersionsReleasedDesc(GenericValue project)
|
java.util.Collection |
getVersionsUnarchived(GenericValue project)
|
java.util.Collection |
getVersionsUnreleased(GenericValue project)
|
java.util.Collection |
getVersionsUnreleased(GenericValue project,
boolean includeArchived)
|
void |
increaseVersionSequence(GenericValue version)
Move a version to have a lower sequence number - ie make it earlier |
void |
moveToEndVersionSequence(GenericValue version)
. |
void |
moveToStartVersionSequence(GenericValue version)
Move a version to the start of the version list |
protected java.util.Collection |
noNull(java.util.Collection col)
|
void |
refresh()
|
void |
refresh(GenericValue project)
|
void |
releaseVersions(java.util.Collection versions,
boolean release)
|
void |
setProjectCategory(GenericValue project,
GenericValue category)
|
void |
updateCache()
|
void |
updateProject(GenericValue updatedProject)
|
void |
updateProjectCategory(GenericValue projectCat)
|
Methods inherited from class com.atlassian.jira.project.AbstractProjectManager |
getDefaultAssignee, getProject, getVersionsReleasedDesc, isDefaultAssignee, isDefaultAssignee |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CachingProjectManager(ProjectManager decoratedProjectManager)
decoratedProjectManager
- The ProjectManager
to delegate to.protected CachingProjectManager(ProjectManager decoratedProjectManager, boolean updateCache)
decoratedProjectManager
- The ProjectManager
to delegate actions to.updateCache
- Whether to instantiate a ProjectCache
.Method Detail |
public void updateCache()
public long getNextId(GenericValue project) throws GenericEntityException
ProjectManager
GenericEntityException
public void refresh(GenericValue project) throws GenericEntityException
GenericEntityException
public void refresh()
public GenericValue getProject(java.lang.Long id) throws GenericEntityException
getProject
in class AbstractProjectManager
GenericEntityException
public GenericValue getProjectByName(java.lang.String name) throws GenericEntityException
getProjectByName
in interface ProjectManager
getProjectByName
in class AbstractProjectManager
GenericEntityException
public GenericValue getProjectByKey(java.lang.String key) throws GenericEntityException
getProjectByKey
in interface ProjectManager
getProjectByKey
in class AbstractProjectManager
GenericEntityException
public GenericValue getComponent(java.lang.Long id) throws GenericEntityException
getComponent
in interface ProjectManager
getComponent
in class AbstractProjectManager
GenericEntityException
public java.util.Collection getComponents(GenericValue project) throws GenericEntityException
getComponents
in interface ProjectManager
getComponents
in class AbstractProjectManager
GenericEntityException
public GenericValue getVersion(java.lang.Long id) throws GenericEntityException
getVersion
in interface ProjectManager
getVersion
in class AbstractProjectManager
GenericEntityException
public GenericValue getVersion(GenericValue project, java.lang.String name) throws GenericEntityException
getVersion
in interface ProjectManager
getVersion
in class AbstractProjectManager
GenericEntityException
public java.util.Collection getVersions(GenericValue project) throws GenericEntityException
getVersions
in interface ProjectManager
getVersions
in class AbstractProjectManager
GenericEntityException
public java.util.Collection getVersionsReleased(GenericValue project, boolean includeArchived) throws GenericEntityException
getVersionsReleased
in interface ProjectManager
getVersionsReleased
in class AbstractProjectManager
GenericEntityException
public java.util.Collection getVersionsReleased(GenericValue project) throws GenericEntityException
GenericEntityException
public java.util.Collection getVersionsReleasedDesc(GenericValue project) throws GenericEntityException
GenericEntityException
public java.util.Collection getVersionsUnreleased(GenericValue project, boolean includeArchived) throws GenericEntityException
getVersionsUnreleased
in interface ProjectManager
getVersionsUnreleased
in class AbstractProjectManager
GenericEntityException
public java.util.Collection getVersionsUnreleased(GenericValue project) throws GenericEntityException
GenericEntityException
public java.util.Collection getVersionsUnarchived(GenericValue project) throws GenericEntityException
GenericEntityException
public java.util.Collection getVersionsArchived(GenericValue project) throws GenericEntityException
GenericEntityException
public java.util.Collection getProjects() throws GenericEntityException
ProjectManager
getProjects
in interface ProjectManager
getProjects
in class AbstractProjectManager
GenericEntityException
protected java.util.Collection noNull(java.util.Collection col)
public void updateProject(GenericValue updatedProject) throws GenericEntityException
updateProject
in interface ProjectManager
updateProject
in class AbstractProjectManager
GenericEntityException
public void moveToStartVersionSequence(GenericValue version) throws GenericEntityException
ProjectManager
moveToStartVersionSequence
in interface ProjectManager
moveToStartVersionSequence
in class AbstractProjectManager
GenericEntityException
public void increaseVersionSequence(GenericValue version) throws GenericEntityException
ProjectManager
increaseVersionSequence
in interface ProjectManager
increaseVersionSequence
in class AbstractProjectManager
GenericEntityException
public void decreaseVersionSequence(GenericValue version) throws GenericEntityException
ProjectManager
decreaseVersionSequence
in interface ProjectManager
decreaseVersionSequence
in class AbstractProjectManager
GenericEntityException
public void moveToEndVersionSequence(GenericValue version) throws GenericEntityException
ProjectManager
moveToEndVersionSequence
in interface ProjectManager
moveToEndVersionSequence
in class AbstractProjectManager
GenericEntityException
public java.util.Collection getProjectCategories() throws GenericEntityException
ProjectManager
getProjectCategories
in interface ProjectManager
getProjectCategories
in class AbstractProjectManager
GenericEntityException
public GenericValue getProjectCategory(java.lang.Long id) throws GenericEntityException
getProjectCategory
in interface ProjectManager
getProjectCategory
in class AbstractProjectManager
GenericEntityException
public void updateProjectCategory(GenericValue projectCat) throws GenericEntityException
updateProjectCategory
in interface ProjectManager
updateProjectCategory
in class AbstractProjectManager
GenericEntityException
public java.util.Collection getProjectsFromProjectCategory(GenericValue projectCategory) throws GenericEntityException
getProjectsFromProjectCategory
in interface ProjectManager
getProjectsFromProjectCategory
in class AbstractProjectManager
GenericEntityException
public GenericValue getProjectCategoryFromProject(GenericValue project) throws GenericEntityException
getProjectCategoryFromProject
in interface ProjectManager
getProjectCategoryFromProject
in class AbstractProjectManager
GenericEntityException
public java.util.Collection getProjectsWithNoCategory() throws GenericEntityException
getProjectsWithNoCategory
in interface ProjectManager
getProjectsWithNoCategory
in class AbstractProjectManager
GenericEntityException
public void setProjectCategory(GenericValue project, GenericValue category) throws GenericEntityException
setProjectCategory
in interface ProjectManager
setProjectCategory
in class AbstractProjectManager
GenericEntityException
public void releaseVersions(java.util.Collection versions, boolean release) throws GenericEntityException
GenericEntityException
public GenericValue getComponent(GenericValue project, java.lang.String name) throws GenericEntityException
getComponent
in interface ProjectManager
getComponent
in class AbstractProjectManager
GenericEntityException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |