aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/FilesMetadata
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2023-11-07 12:43:01 -0100
committerMaxence Lange <maxence@artificial-owl.com>2023-11-07 12:43:08 -0100
commitf497d8b6e5a42635ec181dfeda404862ee4c8e3d (patch)
treee6cd926b6f7ab4d9762f0312ad8962c78aaf1309 /lib/public/FilesMetadata
parente62e9e3dbf1a2573554b1a9eabbf5b59b652dae6 (diff)
downloadnextcloud-server-f497d8b6e5a42635ec181dfeda404862ee4c8e3d.tar.gz
nextcloud-server-f497d8b6e5a42635ec181dfeda404862ee4c8e3d.zip
IFilesMetadata
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/public/FilesMetadata')
-rw-r--r--lib/public/FilesMetadata/IFilesMetadataManager.php10
-rw-r--r--lib/public/FilesMetadata/Model/IMetadataQuery.php1
2 files changed, 7 insertions, 4 deletions
diff --git a/lib/public/FilesMetadata/IFilesMetadataManager.php b/lib/public/FilesMetadata/IFilesMetadataManager.php
index 7ba8cac795a..1cd0fcb4125 100644
--- a/lib/public/FilesMetadata/IFilesMetadataManager.php
+++ b/lib/public/FilesMetadata/IFilesMetadataManager.php
@@ -38,10 +38,9 @@ use OCP\FilesMetadata\Model\IMetadataQuery;
* @since 28.0.0
*/
interface IFilesMetadataManager {
- /**
- * @since 28.0.0
- */
+ /** @since 28.0.0 */
public const PROCESS_LIVE = 1;
+ /** @since 28.0.0 */
public const PROCESS_BACKGROUND = 2;
/**
@@ -128,10 +127,13 @@ interface IFilesMetadataManager {
/**
* initiate a metadata key with its type.
* The call is mandatory before using the metadata property in a webdav request.
+ * It is not needed to only use this method when the app is enabled: the method can be
+ * called each time during the app loading as the metadata will only be initiated if not known
*
* @param string $key metadata key
* @param string $type metadata type
+ * @param bool $indexed TRUE if metadata can be search
* @since 28.0.0
*/
- public function initMetadataIndex(string $key, string $type): void;
+ public function initMetadata(string $key, string $type, bool $indexed): void;
}
diff --git a/lib/public/FilesMetadata/Model/IMetadataQuery.php b/lib/public/FilesMetadata/Model/IMetadataQuery.php
index 3e68b47f822..d3f55ce6cce 100644
--- a/lib/public/FilesMetadata/Model/IMetadataQuery.php
+++ b/lib/public/FilesMetadata/Model/IMetadataQuery.php
@@ -31,6 +31,7 @@ namespace OCP\FilesMetadata\Model;
* @since 28.0.0
*/
interface IMetadataQuery {
+ /** @since 28.0.0 */
public const EXTRA = 'metadata';
/**