|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.web.util.DefaultAuthorizationSupport
public class DefaultAuthorizationSupport
Implementation of the authorization checks defined in AuthorizationSupport
Constructor Summary | |
---|---|
DefaultAuthorizationSupport(PermissionManager permissionManager,
JiraAuthenticationContext jiraAuthenticationContext)
|
Method Summary | |
---|---|
boolean |
hasIssuePermission(int permissionsId,
Issue issue)
Returns true if the logged in user has the given permission type on the given Issue. |
boolean |
hasPermission(int permissionsId)
Returns true if the logged in user has the given permission type. |
boolean |
hasProjectPermission(int permissionsId,
Project project)
Returns true if the logged in user has the given permission type on the given Project. |
boolean |
isHasIssuePermission(int permissionsId,
org.ofbiz.core.entity.GenericValue issue)
Returns true if the logged in user has the given permission type on the given Issue. |
boolean |
isHasIssuePermission(String permName,
org.ofbiz.core.entity.GenericValue issue)
Returns true if the logged in user has the given permission type on the given Issue. |
boolean |
isHasPermission(int permissionsId)
Returns true if the logged in user has the given permission type. |
boolean |
isHasPermission(String permName)
Returns true if the logged in user has the given permission type. |
boolean |
isHasPermission(String permName,
org.ofbiz.core.entity.GenericValue entity)
Deprecated. |
boolean |
isHasProjectPermission(int permissionsId,
org.ofbiz.core.entity.GenericValue project)
Returns true if the logged in user has the given permission type on the given Project. |
boolean |
isHasProjectPermission(String permName,
org.ofbiz.core.entity.GenericValue project)
Returns true if the logged in user has the given permission type on the given Project. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultAuthorizationSupport(PermissionManager permissionManager, JiraAuthenticationContext jiraAuthenticationContext)
Method Detail |
---|
public boolean isHasPermission(String permName)
AuthorizationSupport
isHasPermission
in interface AuthorizationSupport
permName
- the permission type
public boolean isHasPermission(int permissionsId)
AuthorizationSupport
isHasPermission
in interface AuthorizationSupport
permissionsId
- the permission type
public boolean hasPermission(int permissionsId)
AuthorizationSupport
hasPermission
in interface AuthorizationSupport
permissionsId
- the permission type
public boolean isHasIssuePermission(String permName, org.ofbiz.core.entity.GenericValue issue)
AuthorizationSupport
isHasIssuePermission
in interface AuthorizationSupport
permName
- the permission typeissue
- the Issue
public boolean isHasIssuePermission(int permissionsId, org.ofbiz.core.entity.GenericValue issue)
AuthorizationSupport
isHasIssuePermission
in interface AuthorizationSupport
permissionsId
- the permission typeissue
- the Issue
public boolean hasIssuePermission(int permissionsId, Issue issue)
AuthorizationSupport
hasIssuePermission
in interface AuthorizationSupport
permissionsId
- the permission typeissue
- the Issue
public boolean isHasProjectPermission(String permName, org.ofbiz.core.entity.GenericValue project)
AuthorizationSupport
isHasProjectPermission
in interface AuthorizationSupport
permName
- the permission typeproject
- the Project
public boolean isHasProjectPermission(int permissionsId, org.ofbiz.core.entity.GenericValue project)
AuthorizationSupport
isHasProjectPermission
in interface AuthorizationSupport
permissionsId
- the permission typeproject
- the Project
public boolean hasProjectPermission(int permissionsId, Project project)
AuthorizationSupport
hasProjectPermission
in interface AuthorizationSupport
permissionsId
- the permission typeproject
- the Project
@Deprecated public boolean isHasPermission(String permName, org.ofbiz.core.entity.GenericValue entity)
AuthorizationSupport
isHasPermission
in interface AuthorizationSupport
permName
- permission typeentity
- entity to check the permission for, e.g. project, issue
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |