ICachedMountInfo.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2016, ownCloud, Inc.
  4. *
  5. * @author Robin Appelman <robin@icewind.nl>
  6. *
  7. * @license AGPL-3.0
  8. *
  9. * This code is free software: you can redistribute it and/or modify
  10. * it under the terms of the GNU Affero General Public License, version 3,
  11. * as published by the Free Software Foundation.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU Affero General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Affero General Public License, version 3,
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>
  20. *
  21. */
  22. namespace OCP\Files\Config;
  23. use OCP\Files\Node;
  24. use OCP\IUser;
  25. /**
  26. * Holds information about a mount for a user
  27. *
  28. * @since 9.0.0
  29. */
  30. interface ICachedMountInfo {
  31. /**
  32. * @return IUser
  33. * @since 9.0.0
  34. */
  35. public function getUser();
  36. /**
  37. * @return int the numeric storage id of the mount
  38. * @since 9.0.0
  39. */
  40. public function getStorageId();
  41. /**
  42. * @return int the fileid of the root of the mount
  43. * @since 9.0.0
  44. */
  45. public function getRootId();
  46. /**
  47. * @return Node the root node of the mount
  48. * @since 9.0.0
  49. */
  50. public function getMountPointNode();
  51. /**
  52. * @return string the mount point of the mount for the user
  53. * @since 9.0.0
  54. */
  55. public function getMountPoint();
  56. /**
  57. * Get the id of the configured mount
  58. *
  59. * @return int|null mount id or null if not applicable
  60. * @since 9.1.0
  61. */
  62. public function getMountId();
  63. /**
  64. * Get the internal path (within the storage) of the root of the mount
  65. *
  66. * @return string
  67. * @since 11.0.0
  68. */
  69. public function getRootInternalPath();
  70. }