2025-12-17 14:56:24 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
*/
|
2026-05-28 08:54:31 -04:00
|
|
|
|
2025-12-17 14:56:24 -05:00
|
|
|
namespace OCP\Share;
|
|
|
|
|
|
|
|
|
|
use OCP\IUser;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Interface IShareProviderSupportsAccept
|
|
|
|
|
*
|
|
|
|
|
* This interface allows to define IShareProvider that can list users for share with the getUsersForShare method,
|
|
|
|
|
* which is available since Nextcloud 17.
|
|
|
|
|
*
|
|
|
|
|
* @since 33.0.0
|
|
|
|
|
*/
|
|
|
|
|
interface IShareProviderGetUsers extends IShareProvider {
|
|
|
|
|
/**
|
|
|
|
|
* Get all users with access to a share
|
|
|
|
|
*
|
|
|
|
|
* @param IShare $share
|
|
|
|
|
* @return iterable<IUser>
|
|
|
|
|
* @since 33.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function getUsersForShare(IShare $share): iterable;
|
|
|
|
|
}
|