1
0

ICachedMountInfo.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace OCP\Files\Config;
  8. use OCP\Files\Node;
  9. use OCP\IUser;
  10. /**
  11. * Holds information about a mount for a user
  12. *
  13. * @since 9.0.0
  14. */
  15. interface ICachedMountInfo {
  16. /**
  17. * @return IUser
  18. * @since 9.0.0
  19. */
  20. public function getUser(): IUser;
  21. /**
  22. * @return int the numeric storage id of the mount
  23. * @since 9.0.0
  24. */
  25. public function getStorageId(): int;
  26. /**
  27. * @return int the fileid of the root of the mount
  28. * @since 9.0.0
  29. */
  30. public function getRootId(): int;
  31. /**
  32. * @return Node|null the root node of the mount
  33. * @since 9.0.0
  34. */
  35. public function getMountPointNode(): ?Node;
  36. /**
  37. * @return string the mount point of the mount for the user
  38. * @since 9.0.0
  39. */
  40. public function getMountPoint(): string;
  41. /**
  42. * Get the id of the configured mount
  43. *
  44. * @return int|null mount id or null if not applicable
  45. * @since 9.1.0
  46. */
  47. public function getMountId(): ?int;
  48. /**
  49. * Get the internal path (within the storage) of the root of the mount
  50. *
  51. * @return string
  52. * @since 11.0.0
  53. */
  54. public function getRootInternalPath(): string;
  55. /**
  56. * Get the class of the mount provider that this mount originates from
  57. *
  58. * @return string
  59. * @since 24.0.0
  60. */
  61. public function getMountProvider(): string;
  62. /**
  63. * Get a key that uniquely identifies the mount
  64. *
  65. * @return string
  66. * @since 28.0.0
  67. */
  68. public function getKey(): string;
  69. }