123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- <?php
- declare(strict_types=1);
- namespace OCP\FilesMetadata;
- use OCP\DB\QueryBuilder\IQueryBuilder;
- use OCP\Files\Node;
- use OCP\FilesMetadata\Exceptions\FilesMetadataException;
- use OCP\FilesMetadata\Exceptions\FilesMetadataNotFoundException;
- use OCP\FilesMetadata\Model\IFilesMetadata;
- use OCP\FilesMetadata\Model\IMetadataValueWrapper;
- interface IFilesMetadataManager {
-
- public const PROCESS_LIVE = 1;
-
- public const PROCESS_BACKGROUND = 2;
-
- public const PROCESS_NAMED = 4;
-
- public function refreshMetadata(
- Node $node,
- int $process = self::PROCESS_LIVE,
- string $namedEvent = '',
- ): IFilesMetadata;
-
- public function getMetadata(int $fileId, bool $generate = false): IFilesMetadata;
-
- public function getMetadataForFiles(array $fileIds): array;
-
- public function saveMetadata(IFilesMetadata $filesMetadata): void;
-
- public function deleteMetadata(int $fileId): void;
-
- public function getMetadataQuery(
- IQueryBuilder $qb,
- string $fileTableAlias,
- string $fileIdField,
- ): IMetadataQuery;
-
- public function getKnownMetadata(): IFilesMetadata;
-
- public function initMetadata(string $key, string $type, bool $indexed, int $editPermission): void;
- }
|