|
@@ 418-430 (lines=13) @@
|
| 415 |
|
* @return string |
| 416 |
|
* @throws FileIsNotIndexableException |
| 417 |
|
*/ |
| 418 |
|
private function getFileSource(Node $file): string { |
| 419 |
|
$source = ''; |
| 420 |
|
|
| 421 |
|
try { |
| 422 |
|
$this->localFilesService->getFileSource($file, $source); |
| 423 |
|
$this->externalFilesService->getFileSource($file, $source); |
| 424 |
|
$this->groupFoldersService->getFileSource($file, $source); |
| 425 |
|
} catch (KnownFileSourceException $e) { |
| 426 |
|
/** we know the source, just leave. */ |
| 427 |
|
} |
| 428 |
|
|
| 429 |
|
return $source; |
| 430 |
|
} |
| 431 |
|
|
| 432 |
|
|
| 433 |
|
/** |
|
@@ 663-677 (lines=15) @@
|
| 660 |
|
* |
| 661 |
|
* @throws FileIsNotIndexableException |
| 662 |
|
*/ |
| 663 |
|
private function updateDocumentAccess(FilesDocument $document, Node $file) { |
| 664 |
|
|
| 665 |
|
// $index = $document->getIndex(); |
| 666 |
|
// This should not be needed, let's assume we _need_ to update document access |
| 667 |
|
// if (!$index->isStatus(IIndex::INDEX_FULL) |
| 668 |
|
// && !$index->isStatus(IIndex::INDEX_META)) { |
| 669 |
|
// return; |
| 670 |
|
// } |
| 671 |
|
|
| 672 |
|
$this->localFilesService->updateDocumentAccess($document, $file); |
| 673 |
|
$this->externalFilesService->updateDocumentAccess($document, $file); |
| 674 |
|
$this->groupFoldersService->updateDocumentAccess($document, $file); |
| 675 |
|
|
| 676 |
|
$this->updateShareNames($document, $file); |
| 677 |
|
} |
| 678 |
|
|
| 679 |
|
|
| 680 |
|
/** |