Interface AutomationPermissionService
- All Known Implementing Classes:
JiraAutomationPermissionService
public interface AutomationPermissionService
-
Method Summary
Modifier and TypeMethodDescriptionbooleanhasManageRulePermission(ApplicationUser user, String projectId) Checks if the given user has permission to manage rules for the specified project, including GLOBAL.booleanhasManageRulePermission(TenantContext context, RemoteConnectUser user, String projectId) Checks if the given user has permission to manage rules for the specified project, including GLOBAL.booleanhasViewRulePermission(ApplicationUser user, String projectId) Checks if the given user has permission to view rules for the specified project, including GLOBAL.booleanChecks if the given user has permission to view rules for any project.booleanisGlobalScope(String projectId) Checks if the given project ID represents a global scope.booleanisJiraAdmin(ApplicationUser user) Checks if the given user is a Jira admin or system admin.booleanChecks if the given user is a Jira system admin.
-
Method Details
-
hasManageRulePermission
Checks if the given user has permission to manage rules for the specified project, including GLOBAL. Prefer usinghasManageRulePermission(ApplicationUser, String)instead.- Parameters:
context- context of the tenantuser- the user to check forprojectId- the given project including "GLOBAL"- Returns:
- true if user has permission
-
isJiraAdmin
Checks if the given user is a Jira admin or system admin.- Parameters:
user- the application user, can be null- Returns:
- true if the user is a Jira admin or system admin, false otherwise
-
isJiraSystemAdmin
Checks if the given user is a Jira system admin.- Parameters:
user- the application user, can be null- Returns:
- true if the user is a Jira system admin, false otherwise
-
isGlobalScope
Checks if the given project ID represents a global scope.- Parameters:
projectId- the project ID- Returns:
- true if the project ID is global, false otherwise
-
hasManageRulePermission
Checks if the given user has permission to manage rules for the specified project, including GLOBAL.- Parameters:
user- the application userprojectId- the project ID- Returns:
- true if the user has manage rule permission, false otherwise
-
hasViewRulePermission
Checks if the given user has permission to view rules for the specified project, including GLOBAL.- Parameters:
user- the application user- Returns:
- true if user has the view rule permission, false otherwise
-
hasViewRulePermissionForAnyProject
Checks if the given user has permission to view rules for any project.- Parameters:
user- the application user- Returns:
- true if user has the view rule permission, false otherwise
-