java.lang.Object | |
↳ | com.atlassian.jira.bc.project.component.DefaultProjectComponentService |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | FIELD_ASSIGNEE_TYPE | assignee type field name | |||||||||
String | FIELD_COMPONENT_LEAD | lead field name | |||||||||
String | FIELD_NAME | name field name | |||||||||
String | FIELD_PROJECT_ID | project ID field name | |||||||||
String | KEY_ASSIGNEE_TYPE_INVALID | ||||||||||
String | KEY_ID_NULL | ||||||||||
String | KEY_NAME_NOT_SET | ||||||||||
String | KEY_NAME_NOT_UNIQUE | ||||||||||
String | KEY_NO_SUCH_COMPONENT | ||||||||||
String | KEY_NO_SUCH_COMPONENT_TO_SWAP_WITH_ID | ||||||||||
String | KEY_NO_SUCH_COMPONENT_WITH_ID | ||||||||||
String | KEY_PROJECT_ID_NOT_FOUND | ||||||||||
String | KEY_PROJECT_ID_NULL | ||||||||||
String | KEY_USER_DOES_NOT_EXIST | ||||||||||
String | KEY_USER_NO_PERMISSION | ||||||||||
String | KEY_USER_NO_PERMISSION_WITH_USER |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a project component with assignee type set as provided.
| |||||||||||
Create a new ProjectComponent object associated with the project with the ID specified and with the values given.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Validates lead.
| |||||||||||
Validates newName.
| |||||||||||
Validates project ID.
| |||||||||||
Verifies that the user with the name specified is a valid JIRA user.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.bc.project.component.ProjectComponentService
|
assignee type field name
Create a project component with assignee type set as provided.
ProjectComponent
Create a new ProjectComponent object associated with the project with the ID specified and with the values given.
Validates the values - stores and returns the ProjectComponent if validation successful. Otherwise, null is returned.user | user performing this operation |
---|---|
errorCollection | collection to add error messages to if validation and permission checks fail - String objects |
name | name of component |
description | description of component |
lead | user name associated with component |
projectId | ID of project that component is associated with |
user | user performing this operation or null for anonymous access |
---|---|
errorCollection | collection to add error messages to if validation and permission checks fail - String objects |
id | component id |
errorCollection
should contain some error information
Validates lead.
For Standard & Professional - lead is always valid and will return null in all cases. For Enterprise - lead is valid if null or a valid user.handler | validation and permission check handler |
---|---|
lead | lead |
Validates newName. Name must be not null and unique.
handler | validation and permission check handler |
---|---|
oldName | old name |
newName | new name |
projectId | project ID |
Validates project ID. Project ID is valid if not null.
handler | validation and permission check handler |
---|---|
projectId | project ID |
Verifies that the user with the name specified is a valid JIRA user.
user | user to verify |
---|
IllegalArgumentException | if user does not exist |
---|