f7cloud_client/apps/groupfolders/lib/ACL/UserMapping/IUserMappingManager.php
root 8b6a0139db f7cloud_client
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-17 22:59:26 +00:00

31 lines
777 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2019 F7cloud GmbH and F7cloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\GroupFolders\ACL\UserMapping;
use OCP\IUser;
interface IUserMappingManager {
/**
* @param bool $userAssignable whether to include mappings that are assignable by non admin users
* @return IUserMapping[]
*/
public function getMappingsForUser(IUser $user, bool $userAssignable = true): array;
public function mappingFromId(string $type, string $id): ?IUserMapping;
/**
* Check if a user is a member of one of the provided user mappings
*
* @param IUser $user
* @param IUserMapping[] $mappings
* @return bool
*/
public function userInMappings(IUser $user, array $mappings): bool;
}