2019-08-13 03:33:46 -04:00
|
|
|
<?php
|
2019-12-03 13:57:53 -05:00
|
|
|
|
2019-08-13 03:33:46 -04:00
|
|
|
declare(strict_types=1);
|
2019-12-03 13:57:53 -05:00
|
|
|
|
2019-08-13 03:33:46 -04:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2019-08-13 03:33:46 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCP\User\Backend;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @since 17.0.0
|
|
|
|
|
*/
|
|
|
|
|
interface IGetRealUIDBackend {
|
|
|
|
|
/**
|
|
|
|
|
* Some backends accept different UIDs than what is the internal UID to be used.
|
2021-03-17 04:02:37 -04:00
|
|
|
* For example the database backend accepts different cased UIDs in all the functions
|
2019-08-13 03:33:46 -04:00
|
|
|
* but the internal UID that is to be used should be correctly cased.
|
|
|
|
|
*
|
2024-09-02 06:30:01 -04:00
|
|
|
* This little function makes sure that the used UID will be correct when using the user object
|
2019-08-13 03:33:46 -04:00
|
|
|
*
|
|
|
|
|
* @since 17.0.0
|
|
|
|
|
* @param string $uid
|
|
|
|
|
* @return string
|
|
|
|
|
*/
|
|
|
|
|
public function getRealUID(string $uid): string;
|
|
|
|
|
}
|