public class ComponentResource extends Object
Constructor and Description |
---|
ComponentResource(ProjectComponentService projectComponentService,
ProjectComponentManager projectComponentManager,
ProjectService projectService,
UserManager userManager,
AvatarService avatarService,
ComponentIssueCountsBeanFactory componentIssueCountsBeanFactory,
JiraAuthenticationContext authContext,
I18nHelper i18n,
PermissionManager permissionManager,
ProjectManager projectManager,
JiraBaseUrls jiraBaseUrls,
com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createComponent(ComponentBean bean)
Create a component via POST.
|
javax.ws.rs.core.Response |
delete(String id,
String moveIssuesTo)
Delete a project component.
|
javax.ws.rs.core.Response |
getComponent(String id)
Returns a project component.
|
javax.ws.rs.core.Response |
getComponentRelatedIssues(String id)
Returns counts of issues related to this component.
|
javax.ws.rs.core.Response |
updateComponent(String id,
ComponentBean bean)
Modify a component via PUT.
|
public ComponentResource(ProjectComponentService projectComponentService, ProjectComponentManager projectComponentManager, ProjectService projectService, UserManager userManager, AvatarService avatarService, ComponentIssueCountsBeanFactory componentIssueCountsBeanFactory, JiraAuthenticationContext authContext, I18nHelper i18n, PermissionManager permissionManager, ProjectManager projectManager, JiraBaseUrls jiraBaseUrls, com.atlassian.event.api.EventPublisher eventPublisher)
public javax.ws.rs.core.Response getComponent(String id)
id
- a String containing the component keypublic javax.ws.rs.core.Response createComponent(ComponentBean bean)
public javax.ws.rs.core.Response updateComponent(String id, ComponentBean bean)
If leadUserName is an empty string ("") the component lead will be removed.
public javax.ws.rs.core.Response getComponentRelatedIssues(String id)
id
- a String containing the component idpublic javax.ws.rs.core.Response delete(String id, String moveIssuesTo)
id
- The component to delete.moveIssuesTo
- The new component applied to issues whose 'id' component will be deleted.
If this value is null, then the 'id' component is simply removed from the related isues.Copyright © 2002-2021 Atlassian. All Rights Reserved.