Interface AutomationPermissionService

All Known Implementing Classes:
JiraAutomationPermissionService

public interface AutomationPermissionService
  • Method Details

    • hasManageRulePermission

      boolean hasManageRulePermission(TenantContext context, RemoteConnectUser user, String projectId)
      Checks if the given user has permission to manage rules for the specified project, including GLOBAL. Prefer using hasManageRulePermission(ApplicationUser, String) instead.
      Parameters:
      context - context of the tenant
      user - the user to check for
      projectId - the given project including "GLOBAL"
      Returns:
      true if user has permission
    • isJiraAdmin

      boolean isJiraAdmin(ApplicationUser user)
      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

      boolean isJiraSystemAdmin(ApplicationUser user)
      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

      boolean isGlobalScope(String projectId)
      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

      boolean hasManageRulePermission(ApplicationUser user, String projectId)
      Checks if the given user has permission to manage rules for the specified project, including GLOBAL.
      Parameters:
      user - the application user
      projectId - the project ID
      Returns:
      true if the user has manage rule permission, false otherwise
    • hasViewRulePermission

      boolean hasViewRulePermission(ApplicationUser user, String projectId)
      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

      boolean hasViewRulePermissionForAnyProject(ApplicationUser user)
      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