@@ -55,7 +55,6 @@ |
||
55 | 55 | use OCP\Files\Storage\IPersistentLockingStorage; |
56 | 56 | use OCP\Files\Storage\IVersionedStorage; |
57 | 57 | use OCP\Lock\ILockingProvider; |
58 | -use Sabre\DAV\Exception\NotImplemented; |
|
59 | 58 | |
60 | 59 | /** |
61 | 60 | * Storage backend class for providing common filesystem operation methods |
@@ -39,7 +39,6 @@ |
||
39 | 39 | use OCA\DAV\Connector\Sabre\Exception\Forbidden; |
40 | 40 | use OCA\DAV\Connector\Sabre\Exception\InvalidPath; |
41 | 41 | use OCP\Files\ForbiddenException; |
42 | -use OCP\Files\Storage\IPersistentLockingStorage; |
|
43 | 42 | use OCP\Share\Exceptions\ShareNotFound; |
44 | 43 | use OCP\Share\IManager; |
45 | 44 |
@@ -34,6 +34,9 @@ |
||
34 | 34 | /** @var Tree */ |
35 | 35 | private $tree; |
36 | 36 | |
37 | + /** |
|
38 | + * @param Tree $tree |
|
39 | + */ |
|
37 | 40 | public function __construct($tree) { |
38 | 41 | $this->tree = $tree; |
39 | 42 | } |
@@ -30,6 +30,11 @@ discard block |
||
30 | 30 | parent::__construct($db, 'persistent_locks', null); |
31 | 31 | } |
32 | 32 | |
33 | + /** |
|
34 | + * @param integer $storageId |
|
35 | + * @param string $internalPath |
|
36 | + * @param boolean $returnChildLocks |
|
37 | + */ |
|
33 | 38 | public function getLocksByPath($storageId, $internalPath, $returnChildLocks) { |
34 | 39 | $query = $this->db->getQueryBuilder(); |
35 | 40 | $pathPattern = $this->db->escapeLikeParameter($internalPath) . '%'; |
@@ -56,6 +61,9 @@ discard block |
||
56 | 61 | // TODO: insert or update |
57 | 62 | } |
58 | 63 | |
64 | + /** |
|
65 | + * @param integer $fileId |
|
66 | + */ |
|
59 | 67 | public function unlock($fileId, $token) { |
60 | 68 | $query = $this->db->getQueryBuilder(); |
61 | 69 |