public class DefaultAuthorizationSupport extends Object implements AuthorizationSupport
AuthorizationSupport
Constructor and Description |
---|
DefaultAuthorizationSupport(GlobalPermissionManager globalPermissionManager,
PermissionManager permissionManager,
JiraAuthenticationContext jiraAuthenticationContext) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasGlobalPermission(GlobalPermissionKey globalPermissionKey)
Returns true if the logged in user has the given global permission.
|
boolean |
hasIssuePermission(int permissionsId,
Issue issue)
Returns true if the logged in user has the given permission type on the given Issue.
|
boolean |
hasIssuePermission(ProjectPermissionKey projectPermissionKey,
Issue issue)
Returns true if the logged in user has the given permission 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 |
hasProjectPermission(ProjectPermissionKey projectPermissionKey,
Project project)
Returns true if the logged in user has the given permission 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.
|
public DefaultAuthorizationSupport(GlobalPermissionManager globalPermissionManager, PermissionManager permissionManager, JiraAuthenticationContext jiraAuthenticationContext)
public boolean isHasPermission(String permName)
AuthorizationSupport
isHasPermission
in interface AuthorizationSupport
permName
- the permission typepublic boolean isHasPermission(int permissionsId)
AuthorizationSupport
isHasPermission
in interface AuthorizationSupport
permissionsId
- the permission typepublic boolean hasPermission(int permissionsId)
AuthorizationSupport
hasPermission
in interface AuthorizationSupport
permissionsId
- the permission typepublic boolean hasGlobalPermission(GlobalPermissionKey globalPermissionKey)
AuthorizationSupport
hasGlobalPermission
in interface AuthorizationSupport
globalPermissionKey
- the permission to checkpublic boolean isHasIssuePermission(String permName, org.ofbiz.core.entity.GenericValue issue)
AuthorizationSupport
isHasIssuePermission
in interface AuthorizationSupport
permName
- the permission typeissue
- the Issuepublic boolean isHasIssuePermission(int permissionsId, org.ofbiz.core.entity.GenericValue issue)
AuthorizationSupport
isHasIssuePermission
in interface AuthorizationSupport
permissionsId
- the permission typeissue
- the Issuepublic boolean hasIssuePermission(int permissionsId, Issue issue)
AuthorizationSupport
hasIssuePermission
in interface AuthorizationSupport
permissionsId
- the permission typeissue
- the Issuepublic boolean hasIssuePermission(ProjectPermissionKey projectPermissionKey, Issue issue)
AuthorizationSupport
hasIssuePermission
in interface AuthorizationSupport
projectPermissionKey
- the permission to checkissue
- the Issuepublic boolean isHasProjectPermission(String permName, org.ofbiz.core.entity.GenericValue project)
AuthorizationSupport
isHasProjectPermission
in interface AuthorizationSupport
permName
- the permission typeproject
- the Projectpublic boolean isHasProjectPermission(int permissionsId, org.ofbiz.core.entity.GenericValue project)
AuthorizationSupport
isHasProjectPermission
in interface AuthorizationSupport
permissionsId
- the permission typeproject
- the Projectpublic boolean hasProjectPermission(int permissionsId, Project project)
AuthorizationSupport
hasProjectPermission
in interface AuthorizationSupport
permissionsId
- the permission typeproject
- the Projectpublic boolean hasProjectPermission(ProjectPermissionKey projectPermissionKey, Project project)
AuthorizationSupport
hasProjectPermission
in interface AuthorizationSupport
projectPermissionKey
- the permission to checkproject
- 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, issueCopyright © 2002-2016 Atlassian. All Rights Reserved.