2016-07-22 04:46:29 -04:00
|
|
|
<?php
|
2025-06-30 09:04:05 -04:00
|
|
|
|
2026-04-01 08:36:40 -04:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2016-07-22 04:46:29 -04:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2016-07-22 04:46:29 -04:00
|
|
|
*/
|
2026-04-01 08:36:40 -04:00
|
|
|
|
2016-07-22 04:46:29 -04:00
|
|
|
namespace OCP\LDAP;
|
|
|
|
|
|
2026-04-01 08:36:40 -04:00
|
|
|
use OCP\AppFramework\Attribute\Consumable;
|
|
|
|
|
|
2016-07-22 04:46:29 -04:00
|
|
|
/**
|
|
|
|
|
* Interface IDeletionFlagSupport
|
|
|
|
|
*
|
2016-11-15 12:51:52 -05:00
|
|
|
* @since 11.0.0
|
2016-07-22 04:46:29 -04:00
|
|
|
*/
|
2026-04-01 08:36:40 -04:00
|
|
|
#[Consumable(since: '11.0.0')]
|
2016-07-22 04:46:29 -04:00
|
|
|
interface IDeletionFlagSupport {
|
|
|
|
|
/**
|
|
|
|
|
* Flag record for deletion.
|
2016-07-27 03:10:35 -04:00
|
|
|
* @param string $uid user id
|
2016-11-15 12:51:52 -05:00
|
|
|
* @since 11.0.0
|
2016-07-22 04:46:29 -04:00
|
|
|
*/
|
2026-04-01 08:36:40 -04:00
|
|
|
public function flagRecord(string $uid): void;
|
2025-06-30 09:04:05 -04:00
|
|
|
|
2016-07-22 04:46:29 -04:00
|
|
|
/**
|
|
|
|
|
* Unflag record for deletion.
|
2016-07-27 03:10:35 -04:00
|
|
|
* @param string $uid user id
|
2016-11-15 12:51:52 -05:00
|
|
|
* @since 11.0.0
|
2016-07-22 04:46:29 -04:00
|
|
|
*/
|
2026-04-01 08:36:40 -04:00
|
|
|
public function unflagRecord(string $uid): void;
|
2016-07-22 04:46:29 -04:00
|
|
|
}
|