Package com.atlassian.jira.sharing
Class SharePermissionDeleteUtils
java.lang.Object
com.atlassian.jira.sharing.SharePermissionDeleteUtils
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.void
deleteUserPermissions
(String userKey) This is called when a user is about to be deleted.
-
Constructor Details
-
Method Details
-
deleteGroupPermissions
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
-
deleteUserPermissions
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
-