Add invalidation methods to the interface

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2019-02-22 09:54:03 +01:00 committed by Julius Härtl
parent 901f1d43e9
commit 30dff37062
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 19 additions and 0 deletions

View File

@ -63,6 +63,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