diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2016-01-28 22:59:48 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2016-01-29 13:08:02 +0100 |
commit | 01cdc70f9c8fd98d2ea49bcfba9005f2797c815d (patch) | |
tree | b853e7991ab474b1519e54c30bfc1ed0e5a37953 /lib/public/comments | |
parent | 24025f32f448d9bef1087bea01d771dd7e871996 (diff) | |
download | nextcloud-server-01cdc70f9c8fd98d2ea49bcfba9005f2797c815d.tar.gz nextcloud-server-01cdc70f9c8fd98d2ea49bcfba9005f2797c815d.zip |
introduce comments read marke tables, comes with user cleanup after deletion
Diffstat (limited to 'lib/public/comments')
-rw-r--r-- | lib/public/comments/icommentsmanager.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/public/comments/icommentsmanager.php b/lib/public/comments/icommentsmanager.php index abcc0a7b159..f5b290bf8b2 100644 --- a/lib/public/comments/icommentsmanager.php +++ b/lib/public/comments/icommentsmanager.php @@ -215,4 +215,23 @@ interface ICommentsManager { */ public function getReadMark($objectType, $objectId, \OCP\IUser $user); + /** + * deletes the read markers for the specified user + * + * @param \OCP\IUser $user + * @return bool + * @since 9.0.0 + */ + public function deleteReadMarksFromUser(\OCP\IUser $user); + + /** + * deletes the read markers on the specified object + * + * @param string $objectType + * @param string $objectId + * @return bool + * @since 9.0.0 + */ + public function deleteReadMarksOnObject($objectType, $objectId); + } |