com.atlassian.jira.sharing
Class SharePermissionDeleteUtils

java.lang.Object
  extended by 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 Summary
SharePermissionDeleteUtils(ShareManager shareManager)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SharePermissionDeleteUtils

public SharePermissionDeleteUtils(ShareManager shareManager)
Method Detail

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


Copyright © 2002-2013 Atlassian. All Rights Reserved.