public class IssueSecuritySchemeServiceImpl extends Object implements IssueSecuritySchemeService
Constructor and Description |
---|
IssueSecuritySchemeServiceImpl(IssueSecuritySchemeManager issueSecuritySchemeManager,
IssueSecurityLevelManager issueSecurityLevelManager,
GlobalPermissionManager globalPermissionManager,
PermissionManager permissionManager,
I18nHelper i18n,
ProjectManager projectManager) |
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.
|
public IssueSecuritySchemeServiceImpl(IssueSecuritySchemeManager issueSecuritySchemeManager, IssueSecurityLevelManager issueSecurityLevelManager, GlobalPermissionManager globalPermissionManager, PermissionManager permissionManager, I18nHelper i18n, ProjectManager projectManager)
public ServiceOutcome<? extends Collection<IssueSecurityLevelScheme>> getIssueSecurityLevelSchemes(ApplicationUser user)
IssueSecuritySchemeService
getIssueSecurityLevelSchemes
in interface IssueSecuritySchemeService
user
- user for which permission checks are performed. Only users with an admin permission can perform this action.public ServiceOutcome<IssueSecurityLevelScheme> getIssueSecurityLevelScheme(ApplicationUser user, long schemeId)
IssueSecuritySchemeService
getIssueSecurityLevelScheme
in interface IssueSecuritySchemeService
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.public ServiceOutcome<IssueSecurityLevelScheme> getIssueSecurityLevelSchemeForProject(ApplicationUser user, long projectId)
IssueSecuritySchemeService
getIssueSecurityLevelSchemeForProject
in interface IssueSecuritySchemeService
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.public ServiceOutcome<IssueSecurityLevelScheme> getIssueSecurityLevelSchemeForProject(ApplicationUser user, String projectKey)
IssueSecuritySchemeService
getIssueSecurityLevelSchemeForProject
in interface IssueSecuritySchemeService
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.public ServiceOutcome<String> assignSchemeToProject(ApplicationUser user, long projectId, Long newSchemeId, Map<Long,Long> oldToNewSecurityLevelMappings)
IssueSecuritySchemeService
assignSchemeToProject
in interface IssueSecuritySchemeService
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.public ServiceOutcome<? extends List<IssueSecurityLevel>> getIssueSecurityLevels(ApplicationUser user, long schemeId)
IssueSecuritySchemeService
getIssueSecurityLevels
in interface IssueSecuritySchemeService
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.public ServiceOutcome<IssueSecurityLevel> getIssueSecurityLevel(ApplicationUser user, long securityLevelId)
IssueSecuritySchemeService
getIssueSecurityLevel
in interface IssueSecuritySchemeService
user
- user for which permission checks are performed. Only users with an admin permission can perform this action.public ServiceOutcome<? extends Collection<IssueSecurityLevelPermission>> getPermissionsByIssueSecurityLevel(ApplicationUser user, long securityLevelId)
IssueSecuritySchemeService
getPermissionsByIssueSecurityLevel
in interface IssueSecuritySchemeService
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.