aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/FullTextSearch/Service/IProviderService.php
blob: e6036b1eb7d5681c3c6bb6a1bbf6b0770bf9dc95 (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
36
<?php

declare(strict_types=1);

/**
 * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
namespace OCP\FullTextSearch\Service;

/**
 * Interface IProviderService
 *
 * @since 15.0.0
 *
 */
interface IProviderService {
	/**
	 * Check if the provider $providerId is already indexed.
	 *
	 * @since 15.0.0
	 *
	 * @param string $providerId
	 *
	 * @return bool
	 */
	public function isProviderIndexed(string $providerId);


	/**
	 * Add the Javascript API in the navigation page of an app.
	 *
	 * @since 15.0.0
	 */
	public function addJavascriptAPI();
}