|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.project.AbstractProjectManager
public abstract class AbstractProjectManager
Constructor Summary | |
---|---|
AbstractProjectManager()
|
Method Summary | |
---|---|
List<org.ofbiz.core.entity.GenericValue> |
convertToProjects(Collection<Long> projectIds)
Converts a collection of projectIds to a collection of projects. |
Project |
createProject(String name,
String key,
String description,
String lead,
String url,
Long assigneeType)
Creates the project in the database, and adds default project roles for this project. |
Collection<org.ofbiz.core.entity.GenericValue> |
getComponents(List<Long> ids)
Get a list of components from their IDs |
User |
getDefaultAssignee(org.ofbiz.core.entity.GenericValue project,
org.ofbiz.core.entity.GenericValue component)
This function returns the default assignee if the system has been setup incorrectly then it will throw an error The isDefaultAssignee(GenericValue, GenericValue) checks if there is a valid default assignee |
long |
getNextId(Project project)
Get the next issue ID from this project (transactional). |
org.ofbiz.core.entity.GenericValue |
getProject(org.ofbiz.core.entity.GenericValue issue)
Returns a project GenericValue that an issue is in. |
org.ofbiz.core.entity.GenericValue |
getProjectCategoryByName(String projectCategoryName)
Find a project category by name. |
org.ofbiz.core.entity.GenericValue |
getProjectCategoryByNameIgnoreCase(String projectCategoryName)
Find a project category by name ignoring the case of the category name. |
boolean |
isDefaultAssignee(org.ofbiz.core.entity.GenericValue project)
Checks if there is a valid default assignee for a given project. |
boolean |
isDefaultAssignee(org.ofbiz.core.entity.GenericValue project,
org.ofbiz.core.entity.GenericValue component)
This function checks if there is a valid default assignee set in the system If this returns false then the getDefaultAssignee(GenericValue, GenericValue) will throw an exception |
Project |
updateProject(Project updatedProject,
String name,
String description,
String lead,
String url,
Long assigneeType)
Updates the project provided with the new attributes passed in. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractProjectManager()
Method Detail |
---|
public org.ofbiz.core.entity.GenericValue getProject(org.ofbiz.core.entity.GenericValue issue)
ProjectManager
GenericValue
that an issue is in.
getProject
in interface ProjectManager
issue
- the issue.
public long getNextId(Project project)
ProjectManager
getNextId
in interface ProjectManager
project
- The Project
public Collection<org.ofbiz.core.entity.GenericValue> getComponents(List<Long> ids)
ProjectManager
getComponents
in interface ProjectManager
ids
- Component IDs
GenericValue
spublic org.ofbiz.core.entity.GenericValue getProjectCategoryByName(String projectCategoryName) throws DataAccessException
ProjectManager
getProjectCategoryByName
in interface ProjectManager
projectCategoryName
- Name of the Project Category
GenericValue
DataAccessException
- If any errors occur accessing the DB.
TODO: deprecate this method.public org.ofbiz.core.entity.GenericValue getProjectCategoryByNameIgnoreCase(String projectCategoryName) throws DataAccessException
ProjectManager
getProjectCategoryByNameIgnoreCase
in interface ProjectManager
projectCategoryName
- Name of the Project Category
GenericValue
DataAccessException
- If any errors occur accessing the DB.
TODO: deprecate this method.public boolean isDefaultAssignee(org.ofbiz.core.entity.GenericValue project, org.ofbiz.core.entity.GenericValue component)
getDefaultAssignee(GenericValue, GenericValue)
will throw an exception
isDefaultAssignee
in interface ProjectManager
project
- component
-
ProjectManager.isDefaultAssignee(org.ofbiz.core.entity.GenericValue)
is true
TODO: deprecate this method.public boolean isDefaultAssignee(org.ofbiz.core.entity.GenericValue project)
ProjectManager
isDefaultAssignee
in interface ProjectManager
project
-
public List<org.ofbiz.core.entity.GenericValue> convertToProjects(Collection<Long> projectIds)
ProjectManager
convertToProjects
in interface ProjectManager
projectIds
- a Collection of Longs
GenericValue
s. Null if input is empty
TODO: deprecate this method.public User getDefaultAssignee(org.ofbiz.core.entity.GenericValue project, org.ofbiz.core.entity.GenericValue component)
isDefaultAssignee(GenericValue, GenericValue)
checks if there is a valid default assignee
getDefaultAssignee
in interface ProjectManager
project
- component
-
User
public Project createProject(String name, String key, String description, String lead, String url, Long assigneeType)
ProjectManager
createProject
in interface ProjectManager
name
- The name of the new projectkey
- The project key of the new projectdescription
- An optional description for the projectlead
- The lead developer for the projecturl
- An optional URL for the new projectassigneeType
- The default assignee for issues created in this project. May be either project lead, or
unassigned if unassigned issues are enabled.
public Project updateProject(Project updatedProject, String name, String description, String lead, String url, Long assigneeType)
ProjectManager
updateProject
in interface ProjectManager
updatedProject
- The project to be updated.name
- The name for the updated projectdescription
- An optional description for the projectlead
- The lead developer for the projecturl
- An optional URL for the updated projectassigneeType
- The default assignee for issues created in this project. May be either project lead, or
unassigned if unassigned issues are enabled.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |