Class ProjectSecurityLevelResource
java.lang.Object
com.atlassian.jira.rest.v2.securitylevel.ProjectSecurityLevelResource
@Path("project/{projectKeyOrId}/securitylevel")
@Consumes("application/json")
@Produces("application/json")
public class ProjectSecurityLevelResource
extends Object
Provide security level information of the given project for the current user.
- Since:
- v7.0
-
Constructor Summary
ConstructorsConstructorDescriptionProjectSecurityLevelResource(ProjectFinder projectFinder, IssueSecurityLevelManager issueSecurityLevelManager, JiraBaseUrls baseUrls, JiraAuthenticationContext authenticationContext, PermissionManager permissionManager, ResponseFactory responseFactory) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsegetSecurityLevelsForProject(String projectKeyOrId) Returns all security levels for the project that the current logged in user has access to.
-
Constructor Details
-
ProjectSecurityLevelResource
@Inject public ProjectSecurityLevelResource(ProjectFinder projectFinder, IssueSecurityLevelManager issueSecurityLevelManager, JiraBaseUrls baseUrls, JiraAuthenticationContext authenticationContext, PermissionManager permissionManager, ResponseFactory responseFactory)
-
-
Method Details
-
getSecurityLevelsForProject
@GET public jakarta.ws.rs.core.Response getSecurityLevelsForProject(@PathParam("projectKeyOrId") String projectKeyOrId) Returns all security levels for the project that the current logged in user has access to. If the user does not have the Set Issue Security permission, the list will be empty.- Parameters:
projectKeyOrId- - key or id of project to list the security levels for- Returns:
- list of security levels
-