java.lang.Object | |
↳ | com.atlassian.jira.project.AbstractProjectManager |
Known Direct Subclasses |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Converts a collection of projectIds to a list of projects.
| |||||||||||
Converts a collection of projectIds to a collection of projects.
| |||||||||||
Creates the project in the database, and adds default project roles for this project.
| |||||||||||
Gets the default assignee for a project and/or component depending on if a component was specified.
| |||||||||||
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 | |||||||||||
Gets the default assignee for an issue given its project and list of Components.
| |||||||||||
Returns a project GenericValue that an issue is in.
| |||||||||||
Returns the
Project with the given project key. | |||||||||||
Find a project category by name.
| |||||||||||
Find a project category by name ignoring the case of the category name.
| |||||||||||
Find a project category by name.
| |||||||||||
Find a project category by name ignoring the case of the category name.
| |||||||||||
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 | |||||||||||
Checks if there is a valid default assignee for a given project.
| |||||||||||
Updates the project provided with the new attributes passed in.
| |||||||||||
Updates the project provided with the new attributes passed in.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.project.ProjectManager
|
Converts a collection of projectIds to a list of projects.
Will return null if incoming collection is null.
The returned list of Project Objects will have the same sort order as the incoming collection of IDs.
projectIds | a Collection of Project IDs |
---|
Converts a collection of projectIds to a collection of projects. Will return null if is null or blank
projectIds | a Collection of Longs |
---|
Creates the project in the database, and adds default project roles for this project. If no name, key or lead are provided an exception will be thrown.
name | The name of the new project |
---|---|
key | The project key of the new project |
description | An optional description for the project |
lead | The lead developer for the project |
url | An optional URL for the new project |
assigneeType | The default assignee for issues created in this project. May be either project lead, or unassigned if unassigned issues are enabled. |
Gets the default assignee for a project and/or component depending on if a component was specified.
project | project |
---|---|
component | 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
project | project |
---|---|
component | component |
User
Gets the default assignee for an issue given its project and list of Components.
If the default assignee configuration is invalid, then a DefaultAssigneeException is thrown. This could be because the default is unassigned, and unassigned issues are not allowed, or because the default user does not have permission to be assigned to issues in this project.
project | project |
---|---|
components | The components |
DefaultAssigneeException |
---|
Returns a project GenericValue that an issue is in.
issue | the issue. |
---|
Returns the Project
with the given project key.
This method will strictly only return the project whose current project key is the one given.
This method is added to the API in anticipation of being able to edit the project key, but this feature has not actually been added in 6.0.
projectKey | the Project key. |
---|
Project
with the given project key.Find a project category by name. NOTE: The current implementation is not the most efficient.
projectCategoryName | Name of the Project Category |
---|
DataAccessException |
---|
Find a project category by name ignoring the case of the category name. NOTE: The current implementation is not the most efficient.
projectCategoryName | Name of the Project Category |
---|
DataAccessException |
---|
Find a project category by name.
projectCategoryName | Name of the Project Category |
---|
DataAccessException |
---|
Find a project category by name ignoring the case of the category name.
projectCategoryName | Name of the Project Category |
---|
DataAccessException |
---|
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 | project |
---|---|
component | component |
isDefaultAssignee(org.ofbiz.core.entity.GenericValue)
is trueChecks if there is a valid default assignee for a given project.
project | project |
---|
Updates the project provided with the new attributes passed in. This method is responsible for persisting any changes to the database.
updatedProject | The project to be updated. |
---|---|
name | The name for the updated project |
description | An optional description for the project |
lead | The userkey of the lead developer for the project |
url | An optional URL for the updated project |
assigneeType | 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. |
Updates the project provided with the new attributes passed in. This method is responsible for persisting any changes to the database.
updatedProject | The project to be updated. |
---|---|
name | The name for the updated project |
description | An optional description for the project |
lead | The userkey of the lead developer for the project |
url | An optional URL for the updated project |
assigneeType | The default assignee for issues created in this project. May be either project lead, or unassigned if unassigned issues are enabled. |