@PublicApi
public interface IssueSecuritySchemeService
IssueSecurityLevelManager
and IssueSecuritySchemeManager
.Modifier and Type | Method and Description |
---|---|
ServiceOutcome<String> |
assignSchemeToProject(ApplicationUser user,
long projectId,
Long newSchemeId,
Map<Long,Long> oldToNewSecurityLevelMappings)
Assigns a new Issue Security Scheme to a project.
|
ServiceOutcome<IssueSecurityLevel> |
getIssueSecurityLevel(ApplicationUser user,
long securityLevelId)
Returns an issue security level with a given id.
|
ServiceOutcome<? extends List<IssueSecurityLevel>> |
getIssueSecurityLevels(ApplicationUser user,
long schemeId)
Returns the list of security levels for the given issue security level scheme.
|
ServiceOutcome<IssueSecurityLevelScheme> |
getIssueSecurityLevelScheme(ApplicationUser user,
long schemeId)
Returns a single issue security scheme with a given id.
|
ServiceOutcome<IssueSecurityLevelScheme> |
getIssueSecurityLevelSchemeForProject(ApplicationUser user,
long projectId)
Returns a single issue security scheme for a given project.
|
ServiceOutcome<IssueSecurityLevelScheme> |
getIssueSecurityLevelSchemeForProject(ApplicationUser user,
String projectKey)
Returns a single issue security scheme for a given project.
|
ServiceOutcome<? extends Collection<IssueSecurityLevelScheme>> |
getIssueSecurityLevelSchemes(ApplicationUser user)
Returns all defined security level schemes.
|
ServiceOutcome<? extends Collection<IssueSecurityLevelPermission>> |
getPermissionsByIssueSecurityLevel(ApplicationUser user,
long securityLevelId)
Returns permissions for the given issue security level.
|
ServiceOutcome<? extends Collection<IssueSecurityLevelScheme>> getIssueSecurityLevelSchemes(ApplicationUser user)
user
- user for which permission checks are performed. Only users with an admin permission can perform this action.ServiceOutcome<IssueSecurityLevelScheme> getIssueSecurityLevelScheme(ApplicationUser user, long schemeId)
user
- user for which permission checks are performed.
Permission to get the issue security scheme with a given key is granted in the following cases:
1. User has the administrator global permission.
2. The scheme is used in a project to which the user has the project administrator permission.ServiceOutcome<IssueSecurityLevelScheme> getIssueSecurityLevelSchemeForProject(ApplicationUser user, long projectId)
user
- user for which permissions checks are performed.
Permission to get the issue security scheme with a given key is granted in the following cases:
1. User has the administrator global permission.
2. The scheme is used in a project to which the user has the project administrator permission.projectId
- id of the project to return scheme for.ServiceOutcome<IssueSecurityLevelScheme> getIssueSecurityLevelSchemeForProject(ApplicationUser user, String projectKey)
user
- user for which permissions checks are performed.
Permission to get the issue security scheme with a given key is granted in the following cases:
1. User has the administrator global permission.
2. The scheme is used in a project to which the user has the project administrator permission.projectKey
- key of the project to return scheme for.ServiceOutcome<String> assignSchemeToProject(ApplicationUser user, long projectId, Long newSchemeId, Map<Long,Long> oldToNewSecurityLevelMappings)
user
- user for which permissions checks are performed.
Permission to get the issue security scheme with a given key is granted in the following cases:
1. User has the administrator global permission.
2. The scheme is used in a project to which the user has the project administrator permission.projectId
- Project to assignnewSchemeId
- Id of the new IssueSecurity SchemeoldToNewSecurityLevelMappings
- Mapping of old to new security levels to apply to issues in the project.ServiceOutcome<? extends List<IssueSecurityLevel>> getIssueSecurityLevels(ApplicationUser user, long schemeId)
user
- user for which permission checks are performed.
Permission to get the issue security levels for a scheme with a given key is granted in the following cases:
1. User has the administrator global permission.
2. The scheme is used in a project to which the user has the project administrator permission.ServiceOutcome<IssueSecurityLevel> getIssueSecurityLevel(ApplicationUser user, long securityLevelId)
user
- user for which permission checks are performed. Only users with an admin permission can perform this action.ServiceOutcome<? extends Collection<IssueSecurityLevelPermission>> getPermissionsByIssueSecurityLevel(ApplicationUser user, long securityLevelId)
user
- user for which permission checks are performed. Only users with an admin permission can perform this action.Copyright © 2002-2019 Atlassian. All Rights Reserved.