Class SharePermissionDeleteUtils

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

public class SharePermissionDeleteUtils extends Object
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.
Since:
v3.13
  • Constructor Details

    • SharePermissionDeleteUtils

      public SharePermissionDeleteUtils(ShareManager shareManager)
  • Method Details

    • deleteGroupPermissions

      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
    • deleteRoleSharePermissions

      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
    • deleteProjectSharePermissions

      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
    • deleteUserPermissions

      public void deleteUserPermissions(String userKey)
      This is called when a user is about to be deleted. This will clean up any SharePermissions associated with that user
      Parameters:
      userKey - the key of the user being deleted
      Since:
      v7.12