public class ComponentHierarchyResource
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ComponentHierarchyResource.ImportAction |
Modifier and Type | Field and Description |
---|---|
private ComponentHierarchyImportExportService |
componentHierarchyImportExportService |
private static org.slf4j.Logger |
log |
private ProjectIdResolver |
projectIdResolver |
private com.atlassian.jira.project.ProjectManager |
projectManager |
private RESTHelper |
restHelper |
private SubcomponentsService |
subcomponentsService |
Constructor and Description |
---|
ComponentHierarchyResource(RESTHelper restHelper,
SubcomponentsService subcomponentsService,
com.atlassian.jira.project.ProjectManager projectManager,
ProjectIdResolver projectIdResolver,
ComponentHierarchyImportExportService componentHierarchyImportExportService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addComponentToHierarchy(int parentLinkId,
long componentId,
boolean isVirtual,
int afterComponentLinkId) |
javax.ws.rs.core.Response |
checkImportHierarchy(java.lang.String projectIdOrKey,
ComponentHierarchyExportNode root) |
private void |
collapse(ComponentHierarchy componentHierarchy) |
javax.ws.rs.core.Response |
deleteFromComponentHierarchy(int linkId) |
javax.ws.rs.core.Response |
exportSubcomponentHierarchy(java.lang.String projectIdOrKey) |
javax.ws.rs.core.Response |
getComponentHierarchyOf(java.lang.String projectKey,
long projectId,
boolean allComponentsAreChildren) |
javax.ws.rs.core.Response |
importHierarchy(java.lang.String projectIdOrKey,
ComponentHierarchyExportNode root) |
javax.ws.rs.core.Response |
searchComponentHierarchyWithJQL(long projectId,
java.util.List<java.lang.String> queryList,
boolean expanded) |
javax.ws.rs.core.Response |
updateComponentHierarchy(int parentLinkId,
int linkId,
int afterComponentLinkId) |
private static final org.slf4j.Logger log
private final RESTHelper restHelper
private final SubcomponentsService subcomponentsService
private final com.atlassian.jira.project.ProjectManager projectManager
private final ProjectIdResolver projectIdResolver
private final ComponentHierarchyImportExportService componentHierarchyImportExportService
public ComponentHierarchyResource(RESTHelper restHelper, SubcomponentsService subcomponentsService, com.atlassian.jira.project.ProjectManager projectManager, ProjectIdResolver projectIdResolver, ComponentHierarchyImportExportService componentHierarchyImportExportService)
public javax.ws.rs.core.Response searchComponentHierarchyWithJQL(long projectId, java.util.List<java.lang.String> queryList, boolean expanded) throws NotFoundException, com.atlassian.jira.issue.search.SearchException
NotFoundException
com.atlassian.jira.issue.search.SearchException
private void collapse(ComponentHierarchy componentHierarchy)
public javax.ws.rs.core.Response getComponentHierarchyOf(java.lang.String projectKey, long projectId, boolean allComponentsAreChildren)
public javax.ws.rs.core.Response addComponentToHierarchy(int parentLinkId, long componentId, boolean isVirtual, int afterComponentLinkId) throws com.atlassian.jira.bc.EntityNotFoundException
com.atlassian.jira.bc.EntityNotFoundException
public javax.ws.rs.core.Response updateComponentHierarchy(int parentLinkId, int linkId, int afterComponentLinkId) throws com.atlassian.jira.bc.EntityNotFoundException
com.atlassian.jira.bc.EntityNotFoundException
public javax.ws.rs.core.Response deleteFromComponentHierarchy(int linkId)
public javax.ws.rs.core.Response exportSubcomponentHierarchy(java.lang.String projectIdOrKey)
public javax.ws.rs.core.Response checkImportHierarchy(java.lang.String projectIdOrKey, ComponentHierarchyExportNode root)
public javax.ws.rs.core.Response importHierarchy(java.lang.String projectIdOrKey, ComponentHierarchyExportNode root)