com.atlassian.jira.web.util
Class DefaultAuthorizationSupport

java.lang.Object
  extended by com.atlassian.jira.web.util.DefaultAuthorizationSupport
All Implemented Interfaces:
AuthorizationSupport

public class DefaultAuthorizationSupport
extends Object
implements AuthorizationSupport

Implementation of the authorization checks defined in AuthorizationSupport

Since:
v4.3

Constructor Summary
DefaultAuthorizationSupport(PermissionManager permissionManager, JiraAuthenticationContext jiraAuthenticationContext)
           
 
Method Summary
 boolean isHasIssuePermission(int permissionsId, org.ofbiz.core.entity.GenericValue issue)
           
 boolean isHasIssuePermission(String permName, org.ofbiz.core.entity.GenericValue issue)
           
 boolean isHasPermission(int permissionsId)
           
 boolean isHasPermission(String permName)
           
 boolean isHasPermission(String permName, org.ofbiz.core.entity.GenericValue entity)
          Deprecated. 
 boolean isHasProjectPermission(int permissionsId, org.ofbiz.core.entity.GenericValue project)
           
 boolean isHasProjectPermission(String permName, org.ofbiz.core.entity.GenericValue project)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAuthorizationSupport

public DefaultAuthorizationSupport(PermissionManager permissionManager,
                                   JiraAuthenticationContext jiraAuthenticationContext)
Method Detail

isHasPermission

public boolean isHasPermission(String permName)
Specified by:
isHasPermission in interface AuthorizationSupport

isHasPermission

public boolean isHasPermission(int permissionsId)
Specified by:
isHasPermission in interface AuthorizationSupport

isHasIssuePermission

public boolean isHasIssuePermission(String permName,
                                    org.ofbiz.core.entity.GenericValue issue)
Specified by:
isHasIssuePermission in interface AuthorizationSupport

isHasIssuePermission

public boolean isHasIssuePermission(int permissionsId,
                                    org.ofbiz.core.entity.GenericValue issue)
Specified by:
isHasIssuePermission in interface AuthorizationSupport

isHasProjectPermission

public boolean isHasProjectPermission(String permName,
                                      org.ofbiz.core.entity.GenericValue project)
Specified by:
isHasProjectPermission in interface AuthorizationSupport

isHasProjectPermission

public boolean isHasProjectPermission(int permissionsId,
                                      org.ofbiz.core.entity.GenericValue project)
Specified by:
isHasProjectPermission in interface AuthorizationSupport

isHasPermission

@Deprecated
public boolean isHasPermission(String permName,
                                          org.ofbiz.core.entity.GenericValue entity)
Deprecated. 

Description copied from interface: AuthorizationSupport
Returns true if remote user has permission over given entity, false otherwise.

Specified by:
isHasPermission in interface AuthorizationSupport
Parameters:
permName - permission type
entity - entity to check the permission for, e.g. project, issue
Returns:
true if remote user has permission over given entity, false otherwise


Copyright © 2002-2012 Atlassian. All Rights Reserved.