com.atlassian.jira.plugin.projectpanel.impl
Class PermissionHelper

java.lang.Object
  extended by com.atlassian.jira.plugin.projectpanel.impl.PermissionHelper

public class PermissionHelper
extends Object

This class is a helper class that at the moment has only one method that is used by Components and Versions project tab panel classes (ComponentsProjectTabPanel, VersionsProjectTabPanel).


Constructor Summary
PermissionHelper(PermissionManager permissionManager)
           
 
Method Summary
 Boolean hasProjectAdminPermission(com.atlassian.crowd.embedded.api.User user, Project project)
          This is a helper method that returns Boolean.TRUE if the given user is granted global administration rights (Permissions.ADMINISTER) or administration rights for given project (Permissions.PROJECT_ADMIN), otherwise returns Boolean.FALSE.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermissionHelper

public PermissionHelper(PermissionManager permissionManager)
Method Detail

hasProjectAdminPermission

public Boolean hasProjectAdminPermission(com.atlassian.crowd.embedded.api.User user,
                                         Project project)
This is a helper method that returns Boolean.TRUE if the given user is granted global administration rights (Permissions.ADMINISTER) or administration rights for given project (Permissions.PROJECT_ADMIN), otherwise returns Boolean.FALSE.

Parameters:
user - user
project - project
Returns:
true if user is granted permission, false otherwise


Copyright © 2002-2013 Atlassian. All Rights Reserved.