public class

IssueSecuritySchemeServiceImpl

extends Object
implements IssueSecuritySchemeService
java.lang.Object
   ↳ com.atlassian.jira.issue.security.IssueSecuritySchemeServiceImpl

Summary

Public Constructors
IssueSecuritySchemeServiceImpl(IssueSecuritySchemeManager issueSecuritySchemeManager, IssueSecurityLevelManager issueSecurityLevelManager, GlobalPermissionManager globalPermissionManager, PermissionManager permissionManager, I18nHelper i18n, ProjectManager projectManager)
Public Methods
ServiceOutcome<IssueSecurityLevel> getIssueSecurityLevel(ApplicationUser user, long securityLevelId)
Returns an issue security level with a given id.
ServiceOutcome<IssueSecurityLevelScheme> getIssueSecurityLevelScheme(ApplicationUser user, long schemeId)
Returns a single issue security scheme with a given id.
ServiceOutcome<IssueSecurityLevelScheme> getIssueSecurityLevelSchemeForProject(ApplicationUser user, String projectKey)
Returns a single issue security scheme for a given project.
ServiceOutcome<IssueSecurityLevelScheme> getIssueSecurityLevelSchemeForProject(ApplicationUser user, long projectId)
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 List<IssueSecurityLevel>> getIssueSecurityLevels(ApplicationUser user, long schemeId)
Returns the list of security levels for the given issue security level scheme.
ServiceOutcome<? extends Collection<IssueSecurityLevelPermission>> getPermissionsByIssueSecurityLevel(ApplicationUser user, long securityLevelId)
Returns permissions for the given issue security level.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.security.IssueSecuritySchemeService

Public Constructors

public IssueSecuritySchemeServiceImpl (IssueSecuritySchemeManager issueSecuritySchemeManager, IssueSecurityLevelManager issueSecurityLevelManager, GlobalPermissionManager globalPermissionManager, PermissionManager permissionManager, I18nHelper i18n, ProjectManager projectManager)

Public Methods

public ServiceOutcome<IssueSecurityLevel> getIssueSecurityLevel (ApplicationUser user, long securityLevelId)

Returns an issue security level with a given id.

Parameters
user user for which permission checks are performed. Only users with an admin permission can perform this action.
Returns
  • a service outcome with an issue security level or an error collection

public ServiceOutcome<IssueSecurityLevelScheme> getIssueSecurityLevelScheme (ApplicationUser user, long schemeId)

Returns a single issue security scheme with a given id.

Parameters
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.
Returns
  • a service outcome with an IssueSecurityLevelScheme or an error collection

public ServiceOutcome<IssueSecurityLevelScheme> getIssueSecurityLevelSchemeForProject (ApplicationUser user, String projectKey)

Returns a single issue security scheme for a given project.

Parameters
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.
Returns
  • a service outcome with an issueSecurityLevelScheme or an error collection

public ServiceOutcome<IssueSecurityLevelScheme> getIssueSecurityLevelSchemeForProject (ApplicationUser user, long projectId)

Returns a single issue security scheme for a given project.

Parameters
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.
Returns
  • a service outcome with an issueSecurityLevelScheme or an error collection

public ServiceOutcome<? extends Collection<IssueSecurityLevelScheme>> getIssueSecurityLevelSchemes (ApplicationUser user)

Returns all defined security level schemes.

Parameters
user user for which permission checks are performed. Only users with an admin permission can perform this action.
Returns
  • a service outcome with a collection of security level schemes or with an error collection

public ServiceOutcome<? extends List<IssueSecurityLevel>> getIssueSecurityLevels (ApplicationUser user, long schemeId)

Returns the list of security levels for the given issue security level scheme. The elements are ordered by name.

Parameters
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.
Returns
  • a service outcome with a list of Security Levels for the given issue security level scheme, or with an error collection

public ServiceOutcome<? extends Collection<IssueSecurityLevelPermission>> getPermissionsByIssueSecurityLevel (ApplicationUser user, long securityLevelId)

Returns permissions for the given issue security level.

Parameters
user user for which permission checks are performed. Only users with an admin permission can perform this action.
Returns
  • a service outcome with a list of issue security level permissions or an error collection