diff options
Diffstat (limited to 'lib/public/Share')
-rw-r--r-- | lib/public/Share/IManager.php | 9 | ||||
-rw-r--r-- | lib/public/Share/IShareProvider.php | 10 |
2 files changed, 19 insertions, 0 deletions
diff --git a/lib/public/Share/IManager.php b/lib/public/Share/IManager.php index e3780ac070c..c43011d3177 100644 --- a/lib/public/Share/IManager.php +++ b/lib/public/Share/IManager.php @@ -161,6 +161,15 @@ interface IManager { public function userDeleted($uid); /** + * The group with $gid is deleted + * We need to clear up all shares to this group + * + * @param $gid + * @since 9.1.0 + */ + public function groupDeleted($gid); + + /** * Instantiates a new share object. This is to be passed to * createShare. * diff --git a/lib/public/Share/IShareProvider.php b/lib/public/Share/IShareProvider.php index e201ba81ebc..24af36e0757 100644 --- a/lib/public/Share/IShareProvider.php +++ b/lib/public/Share/IShareProvider.php @@ -156,4 +156,14 @@ interface IShareProvider { * @since 9.1.0 */ public function userDeleted($uid, $shareType); + + /** + * A group is deleted from the system. + * We have to clean up all shares to this group. + * Providers not handling group shares should just return + * + * @param string $gid + * @since 9.1.0 + */ + public function groupDeleted($gid); } |