|
||||||||||
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.DefaultProjectManager
A class to manage interactions with projects
Constructor Summary | |
DefaultProjectManager()
Don't use this constructor. |
Method Summary | |
void |
decreaseVersionSequence(GenericValue pVersion)
. |
GenericValue |
getComponent(GenericValue project,
java.lang.String name)
|
GenericValue |
getComponent(java.lang.Long id)
|
java.util.Collection |
getComponents(GenericValue project)
|
protected GenericDelegator |
getDelegator()
|
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)
Get the Project Category given a Project. |
java.util.Collection |
getProjects()
Return all projects |
java.util.Collection |
getProjectsFromProjectCategory(GenericValue projectCategory)
Gather a list of projects that are in a project category. |
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 pVersion)
Move a pVersion 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 |
void |
refresh()
|
void |
refresh(GenericValue project)
|
void |
releaseVersions(java.util.Collection versions,
boolean release)
Release / unrelease a collection of versions and update the appropriate issue caches. |
void |
setProjectCategory(GenericValue project,
GenericValue category)
If category is non-null, set project 's Project Category to category . |
void |
updateProject(GenericValue updatedProject)
|
void |
updateProjectCategory(GenericValue projectCat)
|
Methods inherited from class com.atlassian.jira.project.AbstractProjectManager |
getProject, getVersionsReleasedDesc |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultProjectManager()
Method Detail |
public long getNextId(GenericValue project) throws GenericEntityException
ProjectManager
GenericEntityException
public void updateProject(GenericValue updatedProject) throws GenericEntityException
updateProject
in interface ProjectManager
updateProject
in class AbstractProjectManager
GenericEntityException
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 GenericValue getComponent(GenericValue project, java.lang.String name) 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 getVersionsArchived(GenericValue project) throws GenericEntityException
GenericEntityException
public java.util.Collection getVersionsUnarchived(GenericValue project) throws GenericEntityException
GenericEntityException
public java.util.Collection getProjects() throws GenericEntityException
getProjects
in interface ProjectManager
getProjects
in class AbstractProjectManager
GenericEntityException
public void moveToStartVersionSequence(GenericValue version) throws GenericEntityException
ProjectManager
moveToStartVersionSequence
in interface ProjectManager
moveToStartVersionSequence
in class AbstractProjectManager
GenericEntityException
public void releaseVersions(java.util.Collection versions, boolean release) throws GenericEntityException
GenericEntityException
public void increaseVersionSequence(GenericValue pVersion) throws GenericEntityException
increaseVersionSequence
in interface ProjectManager
increaseVersionSequence
in class AbstractProjectManager
GenericEntityException
public void decreaseVersionSequence(GenericValue pVersion) throws GenericEntityException
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
protected GenericDelegator getDelegator()
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
projectCategory
- Project to look up against
GenericEntityException
public GenericValue getProjectCategoryFromProject(GenericValue project) throws GenericEntityException
getProjectCategoryFromProject
in interface ProjectManager
getProjectCategoryFromProject
in class AbstractProjectManager
project
- Project
GenericEntityException
public void setProjectCategory(GenericValue project, GenericValue category) throws GenericEntityException
category
is non-null, set project
's Project Category to category
.
If category
is null, remove project
's Project Category association, if one exists.
setProjectCategory
in interface ProjectManager
setProjectCategory
in class AbstractProjectManager
project
- category
-
GenericEntityException
public void refresh(GenericValue project) throws GenericEntityException
GenericEntityException
public void refresh()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |