com.atlassian.jira.project
Interface ProjectManager

All Known Implementing Classes:
AbstractProjectManager

public interface ProjectManager


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)
           
 User getDefaultAssignee(GenericValue project, GenericValue component)
           
 long getNextId(GenericValue project)
          Get the next ID from this project (transactional)
 GenericValue getProject(GenericValue issue)
           
 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 getVersionsReleasedDesc(GenericValue project, boolean includeArchived)
           
 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
 boolean isDefaultAssignee(GenericValue project)
           
 boolean isDefaultAssignee(GenericValue project, GenericValue component)
           
 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)
           
 void setProjectCategory(GenericValue project, GenericValue category)
           
 void updateProject(GenericValue updatedProject)
           
 void updateProjectCategory(GenericValue projectCat)
           
 

Method Detail

updateProject

public void updateProject(GenericValue updatedProject)
                   throws GenericEntityException
Throws:
GenericEntityException

getProject

public GenericValue getProject(GenericValue issue)
                        throws GenericEntityException
Throws:
GenericEntityException

getProjectByName

public GenericValue getProjectByName(java.lang.String name)
                              throws GenericEntityException
Throws:
GenericEntityException

getProjectByKey

public GenericValue getProjectByKey(java.lang.String key)
                             throws GenericEntityException
Throws:
GenericEntityException

getComponent

public GenericValue getComponent(java.lang.Long id)
                          throws GenericEntityException
Throws:
GenericEntityException

getComponent

public GenericValue getComponent(GenericValue project,
                                 java.lang.String name)
                          throws GenericEntityException
Throws:
GenericEntityException

getComponents

public java.util.Collection getComponents(GenericValue project)
                                   throws GenericEntityException
Throws:
GenericEntityException

getVersion

public GenericValue getVersion(java.lang.Long id)
                        throws GenericEntityException
Throws:
GenericEntityException

getVersion

public GenericValue getVersion(GenericValue project,
                               java.lang.String name)
                        throws GenericEntityException
Throws:
GenericEntityException

getVersions

public java.util.Collection getVersions(GenericValue project)
                                 throws GenericEntityException
Throws:
GenericEntityException

getVersionsReleased

public java.util.Collection getVersionsReleased(GenericValue project,
                                                boolean includeArchived)
                                         throws GenericEntityException
Throws:
GenericEntityException

getVersionsReleased

public java.util.Collection getVersionsReleased(GenericValue project)
                                         throws GenericEntityException
Throws:
GenericEntityException

getVersionsReleasedDesc

public java.util.Collection getVersionsReleasedDesc(GenericValue project,
                                                    boolean includeArchived)
                                             throws GenericEntityException
Throws:
GenericEntityException

getVersionsReleasedDesc

public java.util.Collection getVersionsReleasedDesc(GenericValue project)
                                             throws GenericEntityException
Throws:
GenericEntityException

getVersionsUnreleased

public java.util.Collection getVersionsUnreleased(GenericValue project,
                                                  boolean includeArchived)
                                           throws GenericEntityException
Throws:
GenericEntityException

getVersionsUnreleased

public java.util.Collection getVersionsUnreleased(GenericValue project)
                                           throws GenericEntityException
Throws:
GenericEntityException

getVersionsUnarchived

public java.util.Collection getVersionsUnarchived(GenericValue project)
                                           throws GenericEntityException
Throws:
GenericEntityException

getVersionsArchived

public java.util.Collection getVersionsArchived(GenericValue project)
                                         throws GenericEntityException
Throws:
GenericEntityException

getProjects

public java.util.Collection getProjects()
                                 throws GenericEntityException
Return all projects

Throws:
GenericEntityException

moveToStartVersionSequence

public void moveToStartVersionSequence(GenericValue version)
                                throws GenericEntityException
Move a version to the start of the version list

Throws:
GenericEntityException

increaseVersionSequence

public void increaseVersionSequence(GenericValue version)
                             throws GenericEntityException
Move a version to have a lower sequence number - ie make it earlier

Throws:
GenericEntityException

decreaseVersionSequence

public void decreaseVersionSequence(GenericValue version)
                             throws GenericEntityException
. Move a version to have a higher sequence number - ie make it later

Throws:
GenericEntityException

moveToEndVersionSequence

public void moveToEndVersionSequence(GenericValue version)
                              throws GenericEntityException
. Move a version to to the end of the version sequence

Throws:
GenericEntityException

getNextId

public long getNextId(GenericValue project)
               throws GenericEntityException
Get the next ID from this project (transactional)

Throws:
GenericEntityException

refresh

public void refresh(GenericValue project)
             throws GenericEntityException
Throws:
GenericEntityException

refresh

public void refresh()

getProjectCategories

public java.util.Collection getProjectCategories()
                                          throws GenericEntityException
Get all ProjectCategories.

Throws:
GenericEntityException

getProjectCategory

public GenericValue getProjectCategory(java.lang.Long id)
                                throws GenericEntityException
Throws:
GenericEntityException

updateProjectCategory

public void updateProjectCategory(GenericValue projectCat)
                           throws GenericEntityException
Throws:
GenericEntityException

getProjectsFromProjectCategory

public java.util.Collection getProjectsFromProjectCategory(GenericValue projectCategory)
                                                    throws GenericEntityException
Throws:
GenericEntityException

getProjectsWithNoCategory

public java.util.Collection getProjectsWithNoCategory()
                                               throws GenericEntityException
Throws:
GenericEntityException

getProjectCategoryFromProject

public GenericValue getProjectCategoryFromProject(GenericValue project)
                                           throws GenericEntityException
Throws:
GenericEntityException

setProjectCategory

public void setProjectCategory(GenericValue project,
                               GenericValue category)
                        throws GenericEntityException
Throws:
GenericEntityException

releaseVersions

public void releaseVersions(java.util.Collection versions,
                            boolean release)
                     throws GenericEntityException
Throws:
GenericEntityException

isDefaultAssignee

public boolean isDefaultAssignee(GenericValue project,
                                 GenericValue component)

getDefaultAssignee

public User getDefaultAssignee(GenericValue project,
                               GenericValue component)

isDefaultAssignee

public boolean isDefaultAssignee(GenericValue project)