ICloudId.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2017, Robin Appelman <robin@icewind.nl>
  4. *
  5. * @license GNU AGPL version 3 or any later version
  6. *
  7. * This code is free software: you can redistribute it and/or modify
  8. * it under the terms of the GNU Affero General Public License, version 3,
  9. * as published by the Free Software Foundation.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU Affero General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Affero General Public License, version 3,
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>
  18. *
  19. */
  20. namespace OCP\Federation;
  21. /**
  22. * Parsed federated cloud id
  23. *
  24. * @since 12.0.0
  25. */
  26. interface ICloudId {
  27. /**
  28. * The remote cloud id
  29. *
  30. * @return string
  31. * @since 12.0.0
  32. */
  33. public function getId();
  34. /**
  35. * Get a clean representation of the cloud id for display
  36. *
  37. * @return string
  38. * @since 12.0.0
  39. */
  40. public function getDisplayId();
  41. /**
  42. * The username on the remote server
  43. *
  44. * @return string
  45. * @since 12.0.0
  46. */
  47. public function getUser();
  48. /**
  49. * The base address of the remote server
  50. *
  51. * @return string
  52. * @since 12.0.0
  53. */
  54. public function getRemote();
  55. }