2017-03-20 09:22:06 -04:00
|
|
|
<?php
|
2025-06-30 09:04:05 -04:00
|
|
|
|
2026-02-26 06:13:58 -05:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2017-03-20 09:22:06 -04: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-03-20 09:22:06 -04:00
|
|
|
*/
|
2026-05-28 08:54:31 -04:00
|
|
|
|
2017-03-20 09:22:06 -04:00
|
|
|
namespace OCP\Share;
|
|
|
|
|
|
2026-02-26 06:13:58 -05:00
|
|
|
use OCP\AppFramework\Attribute\Consumable;
|
2017-03-20 09:22:06 -04:00
|
|
|
use OCP\Files\Node;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Interface IShareHelper
|
|
|
|
|
*
|
2026-02-26 06:13:58 -05:00
|
|
|
* @since 12.0.0
|
2017-03-20 09:22:06 -04:00
|
|
|
*/
|
2026-02-26 06:13:58 -05:00
|
|
|
#[Consumable(since: '12.0.0')]
|
2017-03-20 09:22:06 -04:00
|
|
|
interface IShareHelper {
|
|
|
|
|
/**
|
2026-02-26 06:13:58 -05:00
|
|
|
* @return array{users: array<string, string>, remotes: array<string, array{token: string, node_path: string}>} [ users => [Mapping $uid => $pathForUser], remotes => [Mapping $cloudId => $pathToMountRoot]]
|
2017-03-20 09:22:06 -04:00
|
|
|
* @since 12
|
|
|
|
|
*/
|
2026-02-26 06:13:58 -05:00
|
|
|
public function getPathsForAccessList(Node $node): array;
|
2017-03-20 09:22:06 -04:00
|
|
|
}
|