@@ -384,6 +384,9 @@ |
||
| 384 | 384 | $this->fileView->changeLock($this->path, $type); |
| 385 | 385 | } |
| 386 | 386 | |
| 387 | + /** |
|
| 388 | + * @param boolean $recursive |
|
| 389 | + */ |
|
| 387 | 390 | public function getLocks($recursive) { |
| 388 | 391 | $this->fileView->getLocks($this->path); |
| 389 | 392 | } |
@@ -33,6 +33,9 @@ discard block |
||
| 33 | 33 | /** @var Tree */ |
| 34 | 34 | private $tree; |
| 35 | 35 | |
| 36 | + /** |
|
| 37 | + * @param Tree $tree |
|
| 38 | + */ |
|
| 36 | 39 | public function __construct($tree) { |
| 37 | 40 | $this->tree = $tree; |
| 38 | 41 | } |
@@ -75,7 +78,7 @@ discard block |
||
| 75 | 78 | * |
| 76 | 79 | * @param string $uri |
| 77 | 80 | * @param Locks\LockInfo $lockInfo |
| 78 | - * @return bool |
|
| 81 | + * @return boolean|null |
|
| 79 | 82 | */ |
| 80 | 83 | function lock($uri, Locks\LockInfo $lockInfo) { |
| 81 | 84 | // TODO: Implement lock() method. |
@@ -86,7 +89,7 @@ discard block |
||
| 86 | 89 | * |
| 87 | 90 | * @param string $uri |
| 88 | 91 | * @param Locks\LockInfo $lockInfo |
| 89 | - * @return bool |
|
| 92 | + * @return boolean|null |
|
| 90 | 93 | */ |
| 91 | 94 | function unlock($uri, Locks\LockInfo $lockInfo) { |
| 92 | 95 | // TODO: Implement unlock() method. |
@@ -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 |
@@ -30,6 +30,9 @@ discard block |
||
| 30 | 30 | parent::__construct($db, 'persistent_locks', null); |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | + /** |
|
| 34 | + * @param integer $fileId |
|
| 35 | + */ |
|
| 33 | 36 | public function getLocksByFileId($fileId) { |
| 34 | 37 | $qb = $this->db->getQueryBuilder(); |
| 35 | 38 | $qb->select('*') |
@@ -39,6 +42,9 @@ discard block |
||
| 39 | 42 | return $this->findEntities($qb->getSQL(), $qb->getParameters()); |
| 40 | 43 | } |
| 41 | 44 | |
| 45 | + /** |
|
| 46 | + * @param boolean $returnChildLocks |
|
| 47 | + */ |
|
| 42 | 48 | public function getLocksByPath($internalPath, $returnChildLocks) { |
| 43 | 49 | $qb = $this->db->getQueryBuilder(); |
| 44 | 50 | $query = $this->db->getQueryBuilder(); |