|
@@ 383-395 (lines=13) @@
|
| 380 |
|
* @return string |
| 381 |
|
* @throws FileIsNotIndexableException |
| 382 |
|
*/ |
| 383 |
|
private function getFileSource(Node $file): string { |
| 384 |
|
$source = ''; |
| 385 |
|
|
| 386 |
|
try { |
| 387 |
|
$this->localFilesService->getFileSource($file, $source); |
| 388 |
|
$this->externalFilesService->getFileSource($file, $source); |
| 389 |
|
$this->groupFoldersService->getFileSource($file, $source); |
| 390 |
|
} catch (KnownFileSourceException $e) { |
| 391 |
|
/** we know the source, just leave. */ |
| 392 |
|
} |
| 393 |
|
|
| 394 |
|
return $source; |
| 395 |
|
} |
| 396 |
|
|
| 397 |
|
|
| 398 |
|
/** |
|
@@ 620-634 (lines=15) @@
|
| 617 |
|
* |
| 618 |
|
* @throws FileIsNotIndexableException |
| 619 |
|
*/ |
| 620 |
|
private function updateDocumentAccess(FilesDocument $document, Node $file) { |
| 621 |
|
|
| 622 |
|
// $index = $document->getIndex(); |
| 623 |
|
// This should not be needed, let's assume we _need_ to update document access |
| 624 |
|
// if (!$index->isStatus(IIndex::INDEX_FULL) |
| 625 |
|
// && !$index->isStatus(IIndex::INDEX_META)) { |
| 626 |
|
// return; |
| 627 |
|
// } |
| 628 |
|
|
| 629 |
|
$this->localFilesService->updateDocumentAccess($document, $file); |
| 630 |
|
$this->externalFilesService->updateDocumentAccess($document, $file); |
| 631 |
|
$this->groupFoldersService->updateDocumentAccess($document, $file); |
| 632 |
|
|
| 633 |
|
$this->updateShareNames($document, $file); |
| 634 |
|
} |
| 635 |
|
|
| 636 |
|
|
| 637 |
|
/** |