Package com.atlassian.jira.projects.util
Class ProjectPermissions
java.lang.Object
com.atlassian.jira.projects.util.ProjectPermissions
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
-
Constructor Summary
ConstructorsConstructorDescriptionProjectPermissions(PermissionManager permissionManager, GlobalPermissionManager globalPermissionManager) -
Method Summary
Modifier and TypeMethodDescriptionhasProjectAdminPermission(ApplicationUser user, Project project) This is a helper method that returnsBoolean.TRUEif the given user is granted global administration rights or administration rights for given project, otherwise returnsBoolean.FALSE.
-
Constructor Details
-
ProjectPermissions
@Autowired public ProjectPermissions(PermissionManager permissionManager, GlobalPermissionManager globalPermissionManager)
-
-
Method Details
-
hasProjectAdminPermission
This is a helper method that returnsBoolean.TRUEif the given user is granted global administration rights or administration rights for given project, otherwise returnsBoolean.FALSE.- Parameters:
user- userproject- project- Returns:
- true if user is granted permission, false otherwise
-