diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-05-29 14:40:06 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-06-01 13:24:02 +0200 |
commit | 661c9e2444c097aad7e47b77df4fc2b10c346d04 (patch) | |
tree | 1d3481ae80822bd7ecbcbad534c2e64e9661496c /apps/files_sharing | |
parent | a1372b2fb5acc51eacf70012a6702a96c78e61ff (diff) | |
download | nextcloud-server-661c9e2444c097aad7e47b77df4fc2b10c346d04.tar.gz nextcloud-server-661c9e2444c097aad7e47b77df4fc2b10c346d04.zip |
add changeLock to the storage api
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/lib/sharedstorage.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php index ad695836396..bf61dda3718 100644 --- a/apps/files_sharing/lib/sharedstorage.php +++ b/apps/files_sharing/lib/sharedstorage.php @@ -634,4 +634,15 @@ class Shared extends \OC\Files\Storage\Common implements ISharedStorage { list($targetStorage, $targetInternalPath) = $this->resolvePath($path); $targetStorage->releaseLock($targetInternalPath, $type, $provider); } + + /** + * @param string $path + * @param int $type \OCP\Lock\ILockingProvider::LOCK_SHARED or \OCP\Lock\ILockingProvider::LOCK_EXCLUSIVE + * @param \OCP\Lock\ILockingProvider $provider + */ + public function changeLock($path, $type, ILockingProvider $provider) { + /** @var \OCP\Files\Storage $targetStorage */ + list($targetStorage, $targetInternalPath) = $this->resolvePath($path); + $targetStorage->changeLock($targetInternalPath, $type, $provider); + } } |