com.atlassian.jira.permission
Class DefaultProjectPermissionSchemeHelper

java.lang.Object
  extended by com.atlassian.jira.permission.DefaultProjectPermissionSchemeHelper
All Implemented Interfaces:
ProjectPermissionSchemeHelper

public class DefaultProjectPermissionSchemeHelper
extends Object
implements ProjectPermissionSchemeHelper

Since:
v4.4

Constructor Summary
DefaultProjectPermissionSchemeHelper(PermissionSchemeManager permissionSchemeManager, JiraAuthenticationContext authenticationContext, PermissionManager permissionManager)
           
 
Method Summary
 List<Project> getSharedProjects(Scheme permissionScheme)
          Gets the projects using a given Permission Scheme.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultProjectPermissionSchemeHelper

public DefaultProjectPermissionSchemeHelper(PermissionSchemeManager permissionSchemeManager,
                                            JiraAuthenticationContext authenticationContext,
                                            PermissionManager permissionManager)
Method Detail

getSharedProjects

public List<Project> getSharedProjects(Scheme permissionScheme)
Description copied from interface: ProjectPermissionSchemeHelper
Gets the projects using a given Permission Scheme. Similar to SchemeManager.getProjects(com.atlassian.jira.scheme.Scheme), but only projects for which the requesting user has ProjectAction.EDIT_PROJECT_CONFIG permissions.

Specified by:
getSharedProjects in interface ProjectPermissionSchemeHelper
Parameters:
permissionScheme - permissionScheme to find associated projects for.
Returns:
list of projects which use the given permissionScheme. Sorted by ProjectNameComparator.COMPARATOR.


Copyright © 2002-2012 Atlassian. All Rights Reserved.