aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Collaboration
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-02-22 11:37:04 +0100
committerJulius Härtl <jus@bitgrid.net>2019-03-01 20:56:59 +0100
commit411350540d137d80c71f1382a667a794dc24821f (patch)
treea0657fc737804597636d82764a893e241b6c19a1 /lib/public/Collaboration
parent066238a99074e27122901f4364e26acdfcb4e6dc (diff)
downloadnextcloud-server-411350540d137d80c71f1382a667a794dc24821f.tar.gz
nextcloud-server-411350540d137d80c71f1382a667a794dc24821f.zip
Also cache the resource type because it is part of the identifier
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/Collaboration')
-rw-r--r--lib/public/Collaboration/Resources/IManager.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/public/Collaboration/Resources/IManager.php b/lib/public/Collaboration/Resources/IManager.php
index 050326d91c4..a04edaf9f8c 100644
--- a/lib/public/Collaboration/Resources/IManager.php
+++ b/lib/public/Collaboration/Resources/IManager.php
@@ -83,6 +83,19 @@ interface IManager extends IProvider {
public function invalidateAccessCacheForResourceByUser(IResource $resource, ?IUser $user): void;
/**
+ * @param IProvider $provider
+ * @since 16.0.0
+ */
+ public function invalidateAccessCacheForProvider(IProvider $provider): void;
+
+ /**
+ * @param IProvider $provider
+ * @param IUser|null $user
+ * @since 16.0.0
+ */
+ public function invalidateAccessCacheForProviderByUser(IProvider $provider, ?IUser $user): void;
+
+ /**
* @param string $type
* @param string $id
* @return IResource