0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-01-31 06:43:12 +00:00
nextcloud_server/lib/public/Calendar/Room/IManager.php
Richard Steinmetz 69e0158030
feat: implement public OCP api to update resources and rooms
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2024-05-27 18:45:52 +02:00

64 lines
1.2 KiB
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCP\Calendar\Room;
/**
* @since 14.0.0
*/
interface IManager {
/**
* Registers a room backend
*
* @param string $backendClass
* @return void
* @since 14.0.0
* @deprecated 24.0.0 use \OC\AppFramework\Bootstrap\::registerCalendarRoomBackend
*/
public function registerBackend(string $backendClass);
/**
* Unregisters a room backend
*
* @param string $backendClass
* @return void
* @since 14.0.0
* @deprecated 24.0.0
*/
public function unregisterBackend(string $backendClass);
/**
* @return IBackend[]
* @since 14.0.0
* @deprecated 24.0.0
*/
public function getBackends():array;
/**
* @param string $backendId
* @return IBackend|null
* @since 14.0.0
* @deprecated 24.0.0
*/
public function getBackend($backendId);
/**
* removes all registered backend instances
* @return void
* @since 14.0.0
* @deprecated 24.0.0
*/
public function clear();
/**
* Update all rooms from all backends right now.
*
* @since 30.0.0
*/
public function update(): void;
}