public class

SharePermissionDeleteUtils

extends Object
java.lang.Object
   ↳ com.atlassian.jira.sharing.SharePermissionDeleteUtils

Class Overview

This is an adapter class that can be called when an entity, like groups and projects and roles, is deleted to allow the other associated SharePermissions to be deleted as well.

Summary

Public Constructors
SharePermissionDeleteUtils(ShareManager shareManager)
Public Methods
void deleteGroupPermissions(String groupName)
This is called when a group is about to be deleted.
void deleteProjectSharePermissions(Long projectId)
This is called when a project is about to be deleted.
void deleteRoleSharePermissions(Long roleId)
This is called when a role is about to be deleted.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public SharePermissionDeleteUtils (ShareManager shareManager)

Public Methods

public void deleteGroupPermissions (String groupName)

This is called when a group is about to be deleted. This will clean up any SharePermissions associated with that group

Parameters
groupName the name of the group being deleted

public void deleteProjectSharePermissions (Long projectId)

This is called when a project is about to be deleted. This will clean up any SharePermissions associated with that Project, including those share with a role in that project.

Parameters
projectId the id of the project being deleted

public void deleteRoleSharePermissions (Long roleId)

This is called when a role is about to be deleted. This will clean up any SharePermissions associated with that role for ALL projects.

Parameters
roleId the id of the role being deleted