public class DefaultProjectPermissionSchemeHelper extends Object implements ProjectPermissionSchemeHelper
Constructor and Description |
---|
DefaultProjectPermissionSchemeHelper(PermissionSchemeManager permissionSchemeManager,
JiraAuthenticationContext authenticationContext,
PermissionManager permissionManager) |
Modifier and Type | Method and Description |
---|---|
int |
getAllSharedProjectsCount(Scheme permissionScheme) |
List<Project> |
getSharedProjects(Scheme permissionScheme)
Gets the projects using a given Permission
Scheme . |
public DefaultProjectPermissionSchemeHelper(PermissionSchemeManager permissionSchemeManager, JiraAuthenticationContext authenticationContext, PermissionManager permissionManager)
public List<Project> getSharedProjects(Scheme permissionScheme)
ProjectPermissionSchemeHelper
Scheme
. Similar to
SchemeManager.getProjects(com.atlassian.jira.scheme.Scheme)
, but only projects for which
the requesting user has ProjectAction.EDIT_PROJECT_CONFIG
permissions.getSharedProjects
in interface ProjectPermissionSchemeHelper
permissionScheme
- permissionScheme to find associated projects for.ProjectNameComparator.COMPARATOR
.public int getAllSharedProjectsCount(Scheme permissionScheme)
getAllSharedProjectsCount
in interface ProjectPermissionSchemeHelper
Copyright © 2002-2022 Atlassian. All Rights Reserved.