INotifyStorage.php 722 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCP\Files\Storage;
  7. use OCP\Files\Notify\INotifyHandler;
  8. /**
  9. * Storage backend that support active notifications
  10. *
  11. * @since 9.1.0
  12. */
  13. interface INotifyStorage {
  14. /**
  15. * @since 9.1.0
  16. */
  17. public const NOTIFY_ADDED = 1;
  18. /**
  19. * @since 9.1.0
  20. */
  21. public const NOTIFY_REMOVED = 2;
  22. /**
  23. * @since 9.1.0
  24. */
  25. public const NOTIFY_MODIFIED = 3;
  26. /**
  27. * @since 9.1.0
  28. */
  29. public const NOTIFY_RENAMED = 4;
  30. /**
  31. * Start the notification handler for this storage
  32. *
  33. * @param $path
  34. * @return INotifyHandler
  35. *
  36. * @since 12.0.0
  37. */
  38. public function notify($path);
  39. }