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,
ResponseFactory responseFactory) |
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 |
getPaginatedComponents(Long startAt,
Integer maxResults,
String query,
List<Long> projectIds)
Returns paginated list of filtered active components
|
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, ResponseFactory responseFactory)
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.@ExperimentalApi public javax.ws.rs.core.Response getPaginatedComponents(Long startAt, Integer maxResults, String query, List<Long> projectIds)
startAt
- the index of the first components to returnmaxResults
- the maximum number of components to returnquery
- the string that components names will be matched withprojectIds
- the set of project ids to filter componentsCopyright © 2002-2024 Atlassian. All Rights Reserved.