com.atlassian.jira.plugin.projectpanel.impl
Class PermissionHelper
java.lang.Object
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
).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PermissionHelper
public PermissionHelper(PermissionManager permissionManager)
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
- userproject
- project
- Returns:
- true if user is granted permission, false otherwise
Copyright © 2002-2013 Atlassian. All Rights Reserved.