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)
          Deprecated. please use getProjectObj
 org.ofbiz.core.entity.GenericValue getProjectByKey(String key)
          Deprecated. please use the getProjectObjByKey method to return a Project object
 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)
           
 Project getProjectObj(Long id)
          Retrieves a single Project by its id.
 Project getProjectObjByKey(String projectKey)
          Returns a Project object based on the passed in project key.
 Collection getProjects()
          Return all project GenericValues.
 Collection getProjectsByLead(User leadUser)
           
 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 refreshProjectDependencies(org.ofbiz.core.entity.GenericValue project)
          This will refresh the dependencies of a 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
Deprecated. please use getProjectObj

Retrieve a single project by it's id.

Throws:
DataAccessException

getProjectObj

public Project getProjectObj(Long id)
                      throws DataAccessException
Retrieves a single Project by its id.

Parameters:
id -
Returns:
project object or null if project with that id doesn't exist
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
Deprecated. please use the getProjectObjByKey method to return a Project object

Retrieve a single project by it's project key.

Throws:
DataAccessException

getProjectObjByKey

public Project getProjectObjByKey(String projectKey)
Returns a Project object based on the passed in project key.

Parameters:
projectKey -
Returns:
the Project object specified by the key or null

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

refreshProjectDependencies

public void refreshProjectDependencies(org.ofbiz.core.entity.GenericValue project)
                                throws DataAccessException
This will refresh the dependencies of a project. Please do not use this to refresh the passed in project in the project cache. use refresh()

Parameters:
project -
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)

getProjectsByLead

public Collection getProjectsByLead(User leadUser)

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-2007 Atlassian. All Rights Reserved.