2024-07-05 07:47:40 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
2024-06-25 10:40:27 +00:00
|
|
|
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2024-07-05 07:47:40 +00:00
|
|
|
*/
|
|
|
|
namespace OCP\Share;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Interface IShareProvider
|
|
|
|
*
|
|
|
|
* @since 30.0.0
|
|
|
|
*/
|
|
|
|
interface IShareProviderWithNotification extends IShareProvider {
|
|
|
|
/**
|
|
|
|
* Send a mail notification to the recipient of a share
|
|
|
|
* @param IShare $share
|
|
|
|
* @return bool True if the mail was sent successfully
|
2024-07-09 09:09:01 +00:00
|
|
|
* @throws \Exception If the mail could not be sent
|
2024-07-05 07:47:40 +00:00
|
|
|
* @since 30.0.0
|
|
|
|
*/
|
|
|
|
public function sendMailNotification(IShare $share): bool;
|
|
|
|
}
|