Welcome to mirror list, hosted at ThFree Co, Russian Federation.

IMetadataManager.php « Metadata « private « lib - github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d2d37f15c258e58b72c1c48758c92f3bdb050ea1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php

declare(strict_types=1);

namespace OC\Metadata;

use OCP\Files\File;

/**
 * Interface to manage additional metadata for files
 */
interface IMetadataManager {
	/**
	 * @param class-string<IMetadataProvider> $className
	 */
	public function registerProvider(string $className): void;

	/**
	 * Generate the metadata for one file
	 */
	public function generateMetadata(File $file, bool $checkExisting = false): void;

	/**
	 * Clear the metadata for one file
	 */
	public function clearMetadata(int $fileId): void;

	/** @return array<int, FileMetadata> */
	public function fetchMetadataFor(string $group, array $fileIds): array;

	/**
	 * Get the capabilites as an array of mimetype regex to the type provided
	 */
	public function getCapabilities(): array;
}