IProviderService.php 625 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\FullTextSearch\Service;
  8. /**
  9. * Interface IProviderService
  10. *
  11. * @since 15.0.0
  12. *
  13. */
  14. interface IProviderService {
  15. /**
  16. * Check if the provider $providerId is already indexed.
  17. *
  18. * @since 15.0.0
  19. *
  20. * @param string $providerId
  21. *
  22. * @return bool
  23. */
  24. public function isProviderIndexed(string $providerId);
  25. /**
  26. * Add the Javascript API in the navigation page of an app.
  27. *
  28. * @since 15.0.0
  29. */
  30. public function addJavascriptAPI();
  31. }