diff options
author | Joas Schilling <coding@schilljs.com> | 2019-02-22 09:54:03 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-03-01 20:56:59 +0100 |
commit | 30dff370620fd00ce240f9dd7eabfb764ca97f42 (patch) | |
tree | e3871e093ed27a4915f9ff9d3ed4bb26c95d36aa /lib/public/Collaboration | |
parent | 901f1d43e98f64de00ab53e65d32fe0426635a91 (diff) | |
download | nextcloud-server-30dff370620fd00ce240f9dd7eabfb764ca97f42.tar.gz nextcloud-server-30dff370620fd00ce240f9dd7eabfb764ca97f42.zip |
Add invalidation methods to the interface
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/Collaboration')
-rw-r--r-- | lib/public/Collaboration/Resources/IManager.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/public/Collaboration/Resources/IManager.php b/lib/public/Collaboration/Resources/IManager.php index af371f7b4f0..050326d91c4 100644 --- a/lib/public/Collaboration/Resources/IManager.php +++ b/lib/public/Collaboration/Resources/IManager.php @@ -64,6 +64,25 @@ interface IManager extends IProvider { public function canAccessCollection(ICollection $collection, ?IUser $user): bool; /** + * @param IUser|null $user + * @since 16.0.0 + */ + public function invalidateAccessCacheForUser(?IUser $user): void; + + /** + * @param IResource $resource + * @since 16.0.0 + */ + public function invalidateAccessCacheForResource(IResource $resource): void; + + /** + * @param IResource $resource + * @param IUser|null $user + * @since 16.0.0 + */ + public function invalidateAccessCacheForResourceByUser(IResource $resource, ?IUser $user): void; + + /** * @param string $type * @param string $id * @return IResource |