public class ProjectCategoryResource extends Object
Constructor and Description |
---|
ProjectCategoryResource(ProjectManager projectManager,
JiraBaseUrls jiraBaseUrls,
JiraAuthenticationContext authContext,
PermissionManager permissionManager,
I18nHelper i18n) |
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()
Returns all project categories
|
javax.ws.rs.core.Response |
getProjectCategoryById(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)
public javax.ws.rs.core.Response getProjectCategoryById(Long id)
id
- project category idpublic javax.ws.rs.core.Response getAllProjectCategories()
public javax.ws.rs.core.Response createProjectCategory(ProjectCategoryBean bean)
public javax.ws.rs.core.Response removeProjectCategory(Long id) throws com.atlassian.core.AtlassianCoreException
id
- Id of the project category to delete.com.atlassian.core.AtlassianCoreException
public javax.ws.rs.core.Response updateProjectCategory(Long id, ProjectCategoryBean bean)
Copyright © 2002-2021 Atlassian. All Rights Reserved.