public class ProjectCategoryResource extends Object
Constructor and Description |
---|
ProjectCategoryResource(ProjectManager projectManager,
JiraBaseUrls jiraBaseUrls,
JiraAuthenticationContext authContext,
PermissionManager permissionManager,
I18nHelper i18n,
com.atlassian.event.api.EventPublisher eventPublisher,
AccessDisablingHelper accessDisablingHelper) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createProjectCategory(ProjectCategoryBean bean)
Create a project category via POST.
|
javax.ws.rs.core.Response |
getAllProjectCategories(String requestedWith)
Returns all project categories
|
javax.ws.rs.core.Response |
getProjectCategoryById(String requestedWith,
Long id)
Contains a representation of a project category in JSON format.
|
javax.ws.rs.core.Response |
removeProjectCategory(Long id)
Delete a project category.
|
javax.ws.rs.core.Response |
updateProjectCategory(Long id,
ProjectCategoryBean bean)
Modify a project category via PUT.
|
public ProjectCategoryResource(ProjectManager projectManager, JiraBaseUrls jiraBaseUrls, JiraAuthenticationContext authContext, PermissionManager permissionManager, I18nHelper i18n, com.atlassian.event.api.EventPublisher eventPublisher, AccessDisablingHelper accessDisablingHelper)
public javax.ws.rs.core.Response getProjectCategoryById(@HeaderParam(value="X-Requested-With") String requestedWith, Long id)
id
- project category idpublic javax.ws.rs.core.Response getAllProjectCategories(@HeaderParam(value="X-Requested-With") String requestedWith)
public javax.ws.rs.core.Response createProjectCategory(ProjectCategoryBean bean)
public javax.ws.rs.core.Response removeProjectCategory(Long id)
id
- Id of the project category to delete.public javax.ws.rs.core.Response updateProjectCategory(Long id, ProjectCategoryBean bean)
Copyright © 2002-2022 Atlassian. All Rights Reserved.