|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProjectManager
Implementations of this interface are responsible for all management of project entities within JIRA.
TODO: change this interface to use the ProjectCategory
object.
Method Summary | |
---|---|
java.util.List<org.ofbiz.core.entity.GenericValue> |
convertToProjects(java.util.Collection<java.lang.Long> projectIds)
Converts a collection of projectIds to a collection of projects. |
Project |
createProject(java.lang.String name,
java.lang.String key,
java.lang.String description,
java.lang.String lead,
java.lang.String url,
java.lang.Long assigneeType)
Creates the project in the database, and adds default project roles for this project. |
Project |
createProject(java.lang.String name,
java.lang.String key,
java.lang.String description,
java.lang.String lead,
java.lang.String url,
java.lang.Long assigneeType,
java.lang.Long avatarId)
Creates the project in the database, and adds default project roles for this project. |
org.ofbiz.core.entity.GenericValue |
getComponent(org.ofbiz.core.entity.GenericValue project,
java.lang.String name)
Deprecated. Use ProjectComponentManager instead. Deprecated in v4.0. |
org.ofbiz.core.entity.GenericValue |
getComponent(java.lang.Long id)
Deprecated. Use ProjectComponentManager instead. Deprecated in v4.0. |
java.util.Collection<org.ofbiz.core.entity.GenericValue> |
getComponents(org.ofbiz.core.entity.GenericValue project)
Deprecated. Use ProjectComponentManager instead. Deprecated in v4.0. |
java.util.Collection<org.ofbiz.core.entity.GenericValue> |
getComponents(java.util.List<java.lang.Long> ids)
Deprecated. Use ProjectComponentManager.getComponents(java.util.List) instead. Deprecated since v4.0. |
com.opensymphony.user.User |
getDefaultAssignee(org.ofbiz.core.entity.GenericValue project,
org.ofbiz.core.entity.GenericValue component)
Gets the default assignee for a project and/or component depending on if a component was specified. |
long |
getNextId(org.ofbiz.core.entity.GenericValue project)
Deprecated. Use getNextId(Project) instead. Deprecated since v4.0. |
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)
Deprecated. Use Issue.getProjectObject() instead. Deprecated since v4.0. |
org.ofbiz.core.entity.GenericValue |
getProject(java.lang.Long id)
Deprecated. please use getProjectObj(java.lang.Long) |
org.ofbiz.core.entity.GenericValue |
getProjectByKey(java.lang.String key)
Deprecated. please use the getProjectObjByKey(java.lang.String) method to return a Project object |
org.ofbiz.core.entity.GenericValue |
getProjectByName(java.lang.String name)
Deprecated. Please use getProjectObjByName(java.lang.String) instead. Deprecated since v4.0. |
java.util.Collection<org.ofbiz.core.entity.GenericValue> |
getProjectCategories()
Get all ProjectCategories. |
org.ofbiz.core.entity.GenericValue |
getProjectCategory(java.lang.Long id)
Returns a single project category by id. |
org.ofbiz.core.entity.GenericValue |
getProjectCategoryByName(java.lang.String projectCategoryName)
Find a project category by name. |
org.ofbiz.core.entity.GenericValue |
getProjectCategoryByNameIgnoreCase(java.lang.String projectCategoryName)
Find a project category by name ignoring the case of the category name. |
org.ofbiz.core.entity.GenericValue |
getProjectCategoryFromProject(org.ofbiz.core.entity.GenericValue project)
Returns a project's category. |
Project |
getProjectObj(java.lang.Long id)
Retrieves a single Project by its id. |
Project |
getProjectObjByKey(java.lang.String projectKey)
Returns a Project object based on the passed in project key. |
Project |
getProjectObjByKeyIgnoreCase(java.lang.String projectKey)
Returns a Project object based ont he passed in project key, not taking into account the case
of the project key. |
Project |
getProjectObjByName(java.lang.String projectName)
Returns a Project object based on the passed in project name. |
java.util.List<Project> |
getProjectObjects()
Return all Project s ordered by name. |
java.util.Collection<Project> |
getProjectObjectsFromProjectCategory(java.lang.Long projectCategoryId)
Returns a list of projects in a particular category. |
java.util.Collection<Project> |
getProjectObjectsWithNoCategory()
Returns a list of projects without project category, sorted by project name |
java.util.Collection<org.ofbiz.core.entity.GenericValue> |
getProjects()
Deprecated. Use getProjectObjects() instead. Deprecated in v4.0. |
java.util.Collection<org.ofbiz.core.entity.GenericValue> |
getProjectsByLead(com.opensymphony.user.User leadUser)
Returns all the projects that leadUser is the project lead for. |
java.util.Collection<org.ofbiz.core.entity.GenericValue> |
getProjectsFromProjectCategory(org.ofbiz.core.entity.GenericValue projectCategory)
Returns a list of projects in a particular category. |
java.util.Collection<org.ofbiz.core.entity.GenericValue> |
getProjectsWithNoCategory()
Returns a list of projects without project category, sorted by project 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 |
void |
refresh()
Causes a full refresh of the project cache. |
void |
refreshProjectDependencies(org.ofbiz.core.entity.GenericValue project)
This will refresh the dependencies of a project. |
void |
removeProject(Project project)
Deletes the provided project from the database. |
void |
removeProjectIssues(Project project)
Removes all issues for a particular project. |
void |
setProjectCategory(org.ofbiz.core.entity.GenericValue project,
org.ofbiz.core.entity.GenericValue category)
Sets a projects category. |
void |
updateProject(org.ofbiz.core.entity.GenericValue updatedProject)
Deprecated. Use updateProject(Project, String, String, String, String, Long) instead |
Project |
updateProject(Project originalProject,
java.lang.String name,
java.lang.String description,
java.lang.String lead,
java.lang.String url,
java.lang.Long assigneeType)
Updates the project provided with the new attributes passed in. |
Project |
updateProject(Project originalProject,
java.lang.String name,
java.lang.String description,
java.lang.String lead,
java.lang.String url,
java.lang.Long assigneeType,
java.lang.Long avatarId)
Updates the project provided with the new attributes passed in. |
void |
updateProjectCategory(org.ofbiz.core.entity.GenericValue projectCat)
Persist an updated project category. |
Method Detail |
---|
Project createProject(java.lang.String name, java.lang.String key, java.lang.String description, java.lang.String lead, java.lang.String url, java.lang.Long assigneeType)
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.
Project createProject(java.lang.String name, java.lang.String key, java.lang.String description, java.lang.String lead, java.lang.String url, java.lang.Long assigneeType, java.lang.Long avatarId)
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.avatarId
- the id of an existing system avatar.
@Deprecated void updateProject(org.ofbiz.core.entity.GenericValue updatedProject) throws DataAccessException
updateProject(Project, String, String, String, String, Long)
instead
GenericValue
to the database.
updatedProject
- Project details to update.
DataAccessException
- If any errors occur accessing the DB.Project updateProject(Project originalProject, java.lang.String name, java.lang.String description, java.lang.String lead, java.lang.String url, java.lang.Long assigneeType)
originalProject
- 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.
Project updateProject(Project originalProject, java.lang.String name, java.lang.String description, java.lang.String lead, java.lang.String url, java.lang.Long assigneeType, java.lang.Long avatarId)
originalProject
- 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.avatarId
- the id of an existing avatar.
void removeProjectIssues(Project project) throws RemoveException
project
- The project for which issues will be deleted.
RemoveException
- if there's any errors removing issuesvoid removeProject(Project project)
ProjectService.deleteProject(com.opensymphony.user.User, com.atlassian.jira.bc.project.ProjectService.DeleteProjectValidationResult)
to
properly delete a project.
project
- The project to be deleted.@Deprecated org.ofbiz.core.entity.GenericValue getProject(org.ofbiz.core.entity.GenericValue issue) throws DataAccessException
Issue.getProjectObject()
instead. Deprecated since v4.0.
GenericValue
that an issue is in.
issue
- the issue.
DataAccessException
- If any errors occur accessing the DB.@Deprecated org.ofbiz.core.entity.GenericValue getProject(java.lang.Long id) throws DataAccessException
getProjectObj(java.lang.Long)
id
- the Project ID.
DataAccessException
- If any errors occur accessing the DB.Project getProjectObj(java.lang.Long id) throws DataAccessException
Project
by its id.
id
- ID of the Project.
DataAccessException
- If any errors occur accessing the DB.@Deprecated org.ofbiz.core.entity.GenericValue getProjectByName(java.lang.String name) throws DataAccessException
getProjectObjByName(java.lang.String)
instead. Deprecated since v4.0.
name
- project name
DataAccessException
- If any errors occur accessing the DB.Project getProjectObjByName(java.lang.String projectName)
Project
object based on the passed in project name.
projectName
- the name of the project
Project
object specified by the supplied name or null@Deprecated org.ofbiz.core.entity.GenericValue getProjectByKey(java.lang.String key) throws DataAccessException
getProjectObjByKey(java.lang.String)
method to return a Project
object
key
- the project key
DataAccessException
- If any errors occur accessing the DB.Project getProjectObjByKey(java.lang.String projectKey)
Project
object based on the passed in project key.
projectKey
- the Project key.
Project
object specified by the key or nullProject getProjectObjByKeyIgnoreCase(java.lang.String projectKey)
Project
object based ont he passed in project key, not taking into account the case
of the project key.
projectKey
- the project key, case does not matter.
@Deprecated org.ofbiz.core.entity.GenericValue getComponent(java.lang.Long id) throws DataAccessException
id
- id
GenericValue
.
DataAccessException
- If any errors occur accessing the DB.ProjectComponentManager.find(Long)
@Deprecated org.ofbiz.core.entity.GenericValue getComponent(org.ofbiz.core.entity.GenericValue project, java.lang.String name) throws DataAccessException
project
- projectname
- name
GenericValue
.
DataAccessException
- If any errors occur accessing the DB.ProjectComponentManager.findByComponentName(java.lang.Long, java.lang.String)
@Deprecated java.util.Collection<org.ofbiz.core.entity.GenericValue> getComponents(org.ofbiz.core.entity.GenericValue project) throws DataAccessException
project
- project
GenericValue
s.
DataAccessException
- If any errors occur accessing the DB.ProjectComponentManager.findAllForProject(java.lang.Long)
@Deprecated java.util.Collection<org.ofbiz.core.entity.GenericValue> getComponents(java.util.List<java.lang.Long> ids) throws DataAccessException
ProjectComponentManager.getComponents(java.util.List)
instead. Deprecated since v4.0.
ids
- Component IDs
GenericValue
s
DataAccessException
- If any errors occur accessing the DB.java.util.Collection<org.ofbiz.core.entity.GenericValue> getProjects() throws DataAccessException
getProjectObjects()
instead. Deprecated in v4.0.
GenericValue
s.
DataAccessException
- If any errors occur accessing the DB.java.util.List<Project> getProjectObjects() throws DataAccessException
Project
s ordered by name.
DataAccessException
- If any errors occur accessing the DB.long getNextId(org.ofbiz.core.entity.GenericValue project) throws DataAccessException
getNextId(Project)
instead. Deprecated since v4.0.
project
- project GenericValue
DataAccessException
- If any errors occur accessing the DB.long getNextId(Project project) throws DataAccessException
project
- The Project
DataAccessException
- If any errors occur accessing the DB.void refreshProjectDependencies(org.ofbiz.core.entity.GenericValue project) throws DataAccessException
refresh()
project
- project GenericValue
DataAccessException
- If any errors occur accessing the DB.
TODO: deprecate this method.void refresh()
java.util.Collection<org.ofbiz.core.entity.GenericValue> getProjectCategories() throws DataAccessException
GenericValue
s
DataAccessException
- If any errors occur accessing the DB.
TODO: deprecate this method.org.ofbiz.core.entity.GenericValue getProjectCategory(java.lang.Long id) throws DataAccessException
id
- Project Category ID.
GenericValue
DataAccessException
- If any errors occur accessing the DB.
TODO: deprecate this method.org.ofbiz.core.entity.GenericValue getProjectCategoryByName(java.lang.String projectCategoryName) throws DataAccessException
projectCategoryName
- Name of the Project Category
GenericValue
DataAccessException
- If any errors occur accessing the DB.
TODO: deprecate this method.org.ofbiz.core.entity.GenericValue getProjectCategoryByNameIgnoreCase(java.lang.String projectCategoryName) throws DataAccessException
projectCategoryName
- Name of the Project Category
GenericValue
DataAccessException
- If any errors occur accessing the DB.
TODO: deprecate this method.void updateProjectCategory(org.ofbiz.core.entity.GenericValue projectCat) throws DataAccessException
projectCat
- project category.
DataAccessException
- If any errors occur accessing the DB.
TODO: deprecate this method.java.util.Collection<org.ofbiz.core.entity.GenericValue> getProjectsFromProjectCategory(org.ofbiz.core.entity.GenericValue projectCategory) throws DataAccessException
projectCategory
- project category.
GenericValue
s sorted by name.
DataAccessException
- If any errors occur accessing the DB.
TODO: deprecate this method.java.util.Collection<Project> getProjectObjectsFromProjectCategory(java.lang.Long projectCategoryId) throws DataAccessException
projectCategoryId
- project category id.
Project
s sorted by name.
DataAccessException
- If any errors occur accessing the DB.java.util.Collection<org.ofbiz.core.entity.GenericValue> getProjectsWithNoCategory() throws DataAccessException
GenericValue
s sorted by name
DataAccessException
- If any errors occur accessing the DB.
TODO: deprecate this method.java.util.Collection<Project> getProjectObjectsWithNoCategory() throws DataAccessException
Project
s sorted by name
DataAccessException
- If any errors occur accessing the DB.org.ofbiz.core.entity.GenericValue getProjectCategoryFromProject(org.ofbiz.core.entity.GenericValue project) throws DataAccessException
project
- project
GenericValue
or null if no category exists.
DataAccessException
- If any errors occur accessing the DB.
TODO: deprecate this method.void setProjectCategory(org.ofbiz.core.entity.GenericValue project, org.ofbiz.core.entity.GenericValue category) throws DataAccessException
project
- projectcategory
- category
DataAccessException
- If any errors occur accessing the DB.
java.lang.IllegalArgumentException
- if the project provided is null
TODO: deprecate this method.boolean isDefaultAssignee(org.ofbiz.core.entity.GenericValue project, org.ofbiz.core.entity.GenericValue component)
getDefaultAssignee(GenericValue, GenericValue)
will throw an exception
project
- projectcomponent
- component
isDefaultAssignee(org.ofbiz.core.entity.GenericValue)
is true
TODO: deprecate this method.com.opensymphony.user.User getDefaultAssignee(org.ofbiz.core.entity.GenericValue project, org.ofbiz.core.entity.GenericValue component)
project
- projectcomponent
- component
User
DefaultAssigneeException
- If the default assignee does NOT have ASSIGNABLE permission OR Unassigned issues are turned off.
TODO: deprecate this method.boolean isDefaultAssignee(org.ofbiz.core.entity.GenericValue project)
project
- project
java.util.Collection<org.ofbiz.core.entity.GenericValue> getProjectsByLead(com.opensymphony.user.User leadUser)
leadUser
- Project Lead
GenericValue
s
TODO: deprecate this method.java.util.List<org.ofbiz.core.entity.GenericValue> convertToProjects(java.util.Collection<java.lang.Long> projectIds)
projectIds
- a Collection of Longs
GenericValue
s. Null if input is empty
TODO: deprecate this method.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |