java.lang.Object | |
↳ | com.atlassian.jira.bc.project.component.DefaultProjectComponentManager |
Validates project component values and provides methods for accessing and persisting project components.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | FIELD_LEAD | lead field name | |||||||||
String | FIELD_NAME | name field name | |||||||||
String | FIELD_PROJECT_ID | project ID field name |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.jira.bc.project.component.ProjectComponentManager
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
eventPublisher |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new instance of this class and sets the store that will be used for persistence.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Check whether component with specified name is stored.
| |||||||||||
Converts the ProjectComponent to GenericValue form, provided as a transitional measure until GenericValue is
eradicated from the front end.
| |||||||||||
Temporary method to allow conversion of a collection of ProjectComponent objects
to a collection of GenericValues representing a project component.
| |||||||||||
Create a new ProjectComponent object associated with the project with the ID specified and with the values given.
| |||||||||||
Delete the component.
| |||||||||||
Deletes all components in given project.
| |||||||||||
Find the component with the specified ID
| |||||||||||
Implement this method to find all components.
| |||||||||||
Find all components associated with the project with the ID specified
| |||||||||||
Returns all unique names of the components that belong to the passed projects.
| |||||||||||
Returns all unique names of components associated with all the projects with the ID-s specified.
| |||||||||||
Finds the ProjectComponent with the given name in the project with the given id.
| |||||||||||
Finds all ProjectComponents with the given name with comparisons case insenstive.
| |||||||||||
This code used to live directly in the IssueImpl but it has been refactored into
the ProjectComponentManager to make things a little cleaner.
| |||||||||||
Retrieve a collection of components - where the lead of each component is
the specified user.
| |||||||||||
Implement this method to look up the project ID for the given component ID.
| |||||||||||
Creates a list of ProjectComponent objects from the given list of IDs.
| |||||||||||
Returns a list of all Issue IDs with the given component.
| |||||||||||
Returns the component with the given ID or null if not found.
| |||||||||||
Update the component specified with the values given.
| |||||||||||
Updates the list of components in issue
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Convert the specified ProjectComponent to a MutableProjectComponent object and sets its project ID with the given
value.
| |||||||||||
Convert the specified MutableProjectComponent to a ProjectComponent object.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.bc.project.component.ProjectComponentManager
|
Creates a new instance of this class and sets the store that will be used for persistence.
store | persistent store |
---|
Check whether component with specified name is stored.
name | component name, null will cause IllegalArgumentException |
---|---|
projectId | project ID |
Converts the ProjectComponent to GenericValue form, provided as a transitional measure until GenericValue is eradicated from the front end.
projectComponent | project component |
---|
Temporary method to allow conversion of a collection of ProjectComponent objects to a collection of GenericValues representing a project component.
projectComponents | a collection of project components |
---|
Create a new ProjectComponent object associated with the project with the ID specified and with the values given.
name | name of component |
---|---|
description | description of component |
lead | user name associated with component |
assigneeType | assignee type |
projectId | ID of project that component is associated with |
IllegalArgumentException |
---|
Delete the component.
componentId | component id |
---|
EntityNotFoundException | if the component is not found |
---|
Deletes all components in given project. Note that this method will not fire a ProjectComponentDeleted upon deletion of a component.
projectId | id of the project in which components will be deleted. |
---|
Find the component with the specified ID
id | component ID to search for |
---|
EntityNotFoundException | if the component is not found |
---|
Implement this method to find all components.
Find all components associated with the project with the ID specified
projectId | ID of project to search for |
---|
Returns all unique names of the components that belong to the passed projects.
projects | projects to search in |
---|
Returns all unique names of components associated with all the projects with the ID-s specified.
projectIds | ID-s of project to search for |
---|
Finds the ProjectComponent with the given name in the project with the given id.
projectId | id of the project. |
---|---|
componentName | name of the component. |
Finds all ProjectComponents with the given name with comparisons case insenstive.
componentName | name of the component. |
---|
This code used to live directly in the IssueImpl but it has been refactored into the ProjectComponentManager to make things a little cleaner. That's why it is "new in 4.2" but immediately marked as deprecated
issue | find components for this issue |
---|
Retrieve a collection of components - where the lead of each component is the specified user.
userName | the lead user name |
---|
Implement this method to look up the project ID for the given component ID. If project is not found, throws EntityNotFoundException.
id | component ID |
---|
EntityNotFoundException |
---|
Creates a list of ProjectComponent objects from the given list of IDs.
ids | The List of ProjectComponent IDs. |
---|
EntityNotFoundException |
---|
Returns a list of all Issue IDs with the given component.
component | the component |
---|
Returns the component with the given ID or null if not found.
projectComponentId | component ID |
---|
Update the component specified with the values given.
component | component to be updated |
---|
EntityNotFoundException | if component is not found |
---|
Updates the list of components in issue
issue | updated issue |
---|---|
newValue | list of components |
Convert the specified ProjectComponent to a MutableProjectComponent object and sets its project ID with the given value.
value | ProjectComponent to be converted into a MutableProjectComponent. |
---|
Convert the specified MutableProjectComponent to a ProjectComponent object.
value | MutableProjectComponent to be converted into a ProjectComponent. |
---|