com.atlassian.jira.project
Interface ProjectManager

All Known Implementing Classes:
AbstractProjectManager

public interface ProjectManager

Implementations of this interface are responsible for all management of project entities within JIRA.


Method Summary
 List convertToProjects(Collection projectIds)
          Converts a collection of projectIds to a collection of projects.
 org.ofbiz.core.entity.GenericValue getComponent(org.ofbiz.core.entity.GenericValue project, String name)
          Get a component from within this project, based on the project and the component name.
 org.ofbiz.core.entity.GenericValue getComponent(Long id)
          Get a component from within this project, by it's id.
 Collection getComponents(org.ofbiz.core.entity.GenericValue project)
           
 Collection getComponents(List ids)
          Get a list of components from their IDs
 User getDefaultAssignee(org.ofbiz.core.entity.GenericValue project, org.ofbiz.core.entity.GenericValue component)
           
 long getNextId(org.ofbiz.core.entity.GenericValue project)
          Get the next ID from this project (transactional)
 org.ofbiz.core.entity.GenericValue getProject(org.ofbiz.core.entity.GenericValue issue)
           
 org.ofbiz.core.entity.GenericValue getProject(Long id)
          Retrieve a single project by it's id.
 org.ofbiz.core.entity.GenericValue getProjectByKey(String key)
          Retrieve a single project by it's project key.
 org.ofbiz.core.entity.GenericValue getProjectByName(String name)
          Retrieve a single project by it's project name.
 Collection getProjectCategories()
          Get all ProjectCategories.
 org.ofbiz.core.entity.GenericValue getProjectCategory(Long id)
           
 org.ofbiz.core.entity.GenericValue getProjectCategoryByName(String projectCategoryName)
           
 org.ofbiz.core.entity.GenericValue getProjectCategoryFromProject(org.ofbiz.core.entity.GenericValue project)
           
 Collection getProjects()
          Return all project GenericValues.
 Collection getProjectsFromProjectCategory(org.ofbiz.core.entity.GenericValue projectCategory)
           
 Collection getProjectsWithNoCategory()
           
 boolean isDefaultAssignee(org.ofbiz.core.entity.GenericValue project)
           
 boolean isDefaultAssignee(org.ofbiz.core.entity.GenericValue project, org.ofbiz.core.entity.GenericValue component)
           
 void refresh()
           
 void refresh(org.ofbiz.core.entity.GenericValue project)
           
 void setProjectCategory(org.ofbiz.core.entity.GenericValue project, org.ofbiz.core.entity.GenericValue category)
           
 void updateProject(org.ofbiz.core.entity.GenericValue updatedProject)
           
 void updateProjectCategory(org.ofbiz.core.entity.GenericValue projectCat)
           
 

Method Detail

updateProject

public void updateProject(org.ofbiz.core.entity.GenericValue updatedProject)
                   throws DataAccessException
Throws:
DataAccessException

getProject

public org.ofbiz.core.entity.GenericValue getProject(org.ofbiz.core.entity.GenericValue issue)
                                              throws DataAccessException
Throws:
DataAccessException

getProject

public org.ofbiz.core.entity.GenericValue getProject(Long id)
                                              throws DataAccessException
Retrieve a single project by it's id.

Throws:
DataAccessException

getProjectByName

public org.ofbiz.core.entity.GenericValue getProjectByName(String name)
                                                    throws DataAccessException
Retrieve a single project by it's project name.

Throws:
DataAccessException

getProjectByKey

public org.ofbiz.core.entity.GenericValue getProjectByKey(String key)
                                                   throws DataAccessException
Retrieve a single project by it's project key.

Throws:
DataAccessException

getComponent

public org.ofbiz.core.entity.GenericValue getComponent(Long id)
                                                throws DataAccessException
Get a component from within this project, by it's id.

Throws:
DataAccessException

getComponent

public org.ofbiz.core.entity.GenericValue getComponent(org.ofbiz.core.entity.GenericValue project,
                                                       String name)
                                                throws DataAccessException
Get a component from within this project, based on the project and the component name.

Throws:
DataAccessException

getComponents

public Collection getComponents(org.ofbiz.core.entity.GenericValue project)
                         throws DataAccessException
Throws:
DataAccessException

getComponents

public Collection getComponents(List ids)
                         throws DataAccessException
Get a list of components from their IDs

Throws:
DataAccessException

getProjects

public Collection getProjects()
                       throws DataAccessException
Return all project GenericValues.

Throws:
DataAccessException

getNextId

public long getNextId(org.ofbiz.core.entity.GenericValue project)
               throws DataAccessException
Get the next ID from this project (transactional)

Throws:
DataAccessException

refresh

public void refresh(org.ofbiz.core.entity.GenericValue project)
             throws DataAccessException
Throws:
DataAccessException

refresh

public void refresh()

getProjectCategories

public Collection getProjectCategories()
                                throws DataAccessException
Get all ProjectCategories.

Throws:
DataAccessException

getProjectCategory

public org.ofbiz.core.entity.GenericValue getProjectCategory(Long id)
                                                      throws DataAccessException
Throws:
DataAccessException

getProjectCategoryByName

public org.ofbiz.core.entity.GenericValue getProjectCategoryByName(String projectCategoryName)
                                                            throws DataAccessException
Throws:
DataAccessException

updateProjectCategory

public void updateProjectCategory(org.ofbiz.core.entity.GenericValue projectCat)
                           throws DataAccessException
Throws:
DataAccessException

getProjectsFromProjectCategory

public Collection getProjectsFromProjectCategory(org.ofbiz.core.entity.GenericValue projectCategory)
                                          throws DataAccessException
Throws:
DataAccessException

getProjectsWithNoCategory

public Collection getProjectsWithNoCategory()
                                     throws DataAccessException
Throws:
DataAccessException

getProjectCategoryFromProject

public org.ofbiz.core.entity.GenericValue getProjectCategoryFromProject(org.ofbiz.core.entity.GenericValue project)
                                                                 throws DataAccessException
Throws:
DataAccessException

setProjectCategory

public void setProjectCategory(org.ofbiz.core.entity.GenericValue project,
                               org.ofbiz.core.entity.GenericValue category)
                        throws DataAccessException
Throws:
DataAccessException

isDefaultAssignee

public boolean isDefaultAssignee(org.ofbiz.core.entity.GenericValue project,
                                 org.ofbiz.core.entity.GenericValue component)

getDefaultAssignee

public User getDefaultAssignee(org.ofbiz.core.entity.GenericValue project,
                               org.ofbiz.core.entity.GenericValue component)

isDefaultAssignee

public boolean isDefaultAssignee(org.ofbiz.core.entity.GenericValue project)

convertToProjects

public List convertToProjects(Collection projectIds)
Converts a collection of projectIds to a collection of projects. Will return null if is null or blank

Parameters:
projectIds -
Returns:
List of Projects. Null if input is empty


Copyright © 2002-2006 Atlassian. All Rights Reserved.