com.atlassian.jira.sharing
Class SharePermissionDeleteUtils

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

public class SharePermissionDeleteUtils
extends java.lang.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(java.lang.String groupName)
          This is called when a group is about to be deleted.
 void deleteProjectSharePermissions(java.lang.Long projectId)
          This is called when a project is about to be deleted.
 void deleteRoleSharePermissions(java.lang.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(java.lang.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(java.lang.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(java.lang.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-2010 Atlassian. All Rights Reserved.