diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2016-01-27 18:30:09 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2016-01-29 13:08:02 +0100 |
commit | d2882b9021a0c46b5d1603d23e8c4705b7283990 (patch) | |
tree | 28ebec337a575615760d9b34264814ed62a6c591 /lib/public | |
parent | b65a23ca4b41ee7ce6290eacde44caeb70a00b2e (diff) | |
download | nextcloud-server-d2882b9021a0c46b5d1603d23e8c4705b7283990.tar.gz nextcloud-server-d2882b9021a0c46b5d1603d23e8c4705b7283990.zip |
Comments WebDAV adjustements
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/comments/icommentsmanager.php | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/lib/public/comments/icommentsmanager.php b/lib/public/comments/icommentsmanager.php index b8fb3ca7f5d..abcc0a7b159 100644 --- a/lib/public/comments/icommentsmanager.php +++ b/lib/public/comments/icommentsmanager.php @@ -115,10 +115,12 @@ interface ICommentsManager { /** * @param $objectType string the object type, e.g. 'files' * @param $objectId string the id of the object + * @param \DateTime $notOlderThan optional, timestamp of the oldest comments + * that may be returned * @return Int * @since 9.0.0 */ - public function getNumberOfCommentsForObject($objectType, $objectId); + public function getNumberOfCommentsForObject($objectType, $objectId, \DateTime $notOlderThan = null); /** * creates a new comment and returns it. At this point of time, it is not @@ -188,4 +190,29 @@ interface ICommentsManager { */ public function deleteCommentsAtObject($objectType, $objectId); + /** + * sets the read marker for a given file to the specified date for the + * provided user + * + * @param string $objectType + * @param string $objectId + * @param \DateTime $dateTime + * @param \OCP\IUser $user + * @since 9.0.0 + */ + public function setReadMark($objectType, $objectId, \DateTime $dateTime, \OCP\IUser $user); + + /** + * returns the read marker for a given file to the specified date for the + * provided user. It returns null, when the marker is not present, i.e. + * no comments were marked as read. + * + * @param string $objectType + * @param string $objectId + * @param \OCP\IUser $user + * @return \DateTime|null + * @since 9.0.0 + */ + public function getReadMark($objectType, $objectId, \OCP\IUser $user); + } |