2017-01-27 06:52:17 -05:00
|
|
|
<?php
|
2019-12-03 13:57:53 -05:00
|
|
|
|
2018-01-16 10:11:51 -05:00
|
|
|
declare(strict_types=1);
|
2019-12-03 13:57:53 -05:00
|
|
|
|
2017-01-27 06:52:17 -05:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2017-01-27 06:52:17 -05:00
|
|
|
*/
|
|
|
|
|
namespace OCP\Federation;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Parsed federated cloud id
|
|
|
|
|
*
|
|
|
|
|
* @since 12.0.0
|
|
|
|
|
*/
|
|
|
|
|
interface ICloudId {
|
|
|
|
|
/**
|
|
|
|
|
* The remote cloud id
|
|
|
|
|
*
|
|
|
|
|
* @return string
|
|
|
|
|
* @since 12.0.0
|
|
|
|
|
*/
|
2018-01-16 10:11:51 -05:00
|
|
|
public function getId(): string;
|
2017-01-27 06:52:17 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get a clean representation of the cloud id for display
|
|
|
|
|
*
|
|
|
|
|
* @return string
|
|
|
|
|
* @since 12.0.0
|
|
|
|
|
*/
|
2018-01-16 10:11:51 -05:00
|
|
|
public function getDisplayId(): string;
|
2017-01-27 06:52:17 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The username on the remote server
|
|
|
|
|
*
|
|
|
|
|
* @return string
|
|
|
|
|
* @since 12.0.0
|
|
|
|
|
*/
|
2018-01-16 10:11:51 -05:00
|
|
|
public function getUser(): string;
|
2017-01-27 06:52:17 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The base address of the remote server
|
|
|
|
|
*
|
|
|
|
|
* @return string
|
|
|
|
|
* @since 12.0.0
|
|
|
|
|
*/
|
2018-01-16 10:11:51 -05:00
|
|
|
public function getRemote(): string;
|
2017-02-09 07:32:36 -05:00
|
|
|
}
|