2018-06-18 08:26:32 -04:00
|
|
|
<?php
|
2022-02-04 05:13:50 -05:00
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2018-06-18 08:26:32 -04:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2018-06-18 08:26:32 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCP\Calendar\Resource;
|
|
|
|
|
|
2018-06-19 06:22:30 -04:00
|
|
|
/**
|
|
|
|
|
* @since 14.0.0
|
|
|
|
|
*/
|
2018-06-18 08:26:32 -04:00
|
|
|
interface IManager {
|
|
|
|
|
/**
|
|
|
|
|
* Registers a resource backend
|
|
|
|
|
*
|
2018-08-24 09:21:04 -04:00
|
|
|
* @param string $backendClass
|
2018-06-18 08:26:32 -04:00
|
|
|
* @return void
|
|
|
|
|
* @since 14.0.0
|
2022-02-04 05:13:50 -05:00
|
|
|
* @deprecated 24.0.0 use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerCalendarResourceBackend
|
2018-06-18 08:26:32 -04:00
|
|
|
*/
|
2018-08-24 09:21:04 -04:00
|
|
|
public function registerBackend(string $backendClass);
|
2018-06-18 08:26:32 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Unregisters a resource backend
|
|
|
|
|
*
|
2018-08-24 09:21:04 -04:00
|
|
|
* @param string $backendClass
|
2018-06-18 08:26:32 -04:00
|
|
|
* @return void
|
|
|
|
|
* @since 14.0.0
|
2022-02-04 05:13:50 -05:00
|
|
|
* @deprecated 24.0.0
|
2018-06-18 08:26:32 -04:00
|
|
|
*/
|
2018-08-24 09:21:04 -04:00
|
|
|
public function unregisterBackend(string $backendClass);
|
2018-06-18 08:26:32 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return IBackend[]
|
|
|
|
|
* @since 14.0.0
|
2022-02-04 05:13:50 -05:00
|
|
|
* @deprecated 24.0.0
|
2018-06-18 08:26:32 -04:00
|
|
|
*/
|
|
|
|
|
public function getBackends():array;
|
|
|
|
|
|
2018-06-18 12:15:50 -04:00
|
|
|
/**
|
|
|
|
|
* @param string $backendId
|
2018-08-24 09:21:04 -04:00
|
|
|
* @return IBackend|null
|
2018-06-19 06:22:30 -04:00
|
|
|
* @since 14.0.0
|
2022-02-04 05:13:50 -05:00
|
|
|
* @deprecated 24.0.0
|
2018-06-18 12:15:50 -04:00
|
|
|
*/
|
2018-08-24 09:21:04 -04:00
|
|
|
public function getBackend($backendId);
|
2018-06-18 12:15:50 -04:00
|
|
|
|
2018-06-18 08:26:32 -04:00
|
|
|
/**
|
|
|
|
|
* removes all registered backend instances
|
|
|
|
|
* @return void
|
|
|
|
|
* @since 14.0.0
|
2022-02-04 05:13:50 -05:00
|
|
|
* @deprecated 24.0.0
|
2018-06-18 08:26:32 -04:00
|
|
|
*/
|
|
|
|
|
public function clear();
|
2024-05-16 15:27:07 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Update all resources from all backends right now.
|
|
|
|
|
*
|
|
|
|
|
* @since 30.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function update(): void;
|
2018-06-18 08:26:32 -04:00
|
|
|
}
|