diff options
author | Georg Ehrke <developer@georgehrke.com> | 2018-06-18 18:15:50 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2018-06-25 04:59:01 +0200 |
commit | 8f061f5407a3c1c0286b08851ab6740b52a20964 (patch) | |
tree | d3ad852025f4a86fa212959bb565b81996e292aa /lib/public/Calendar/Room | |
parent | 9aca92c441229619cfef5ee4dc68f71d819bc6e9 (diff) | |
download | nextcloud-server-8f061f5407a3c1c0286b08851ab6740b52a20964.tar.gz nextcloud-server-8f061f5407a3c1c0286b08851ab6740b52a20964.zip |
periodically query calendar resource / room backends for updated resource / room information
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'lib/public/Calendar/Room')
-rw-r--r-- | lib/public/Calendar/Room/IBackend.php | 4 | ||||
-rw-r--r-- | lib/public/Calendar/Room/IManager.php | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/lib/public/Calendar/Room/IBackend.php b/lib/public/Calendar/Room/IBackend.php index 84e01f6e320..0d4c3ef678f 100644 --- a/lib/public/Calendar/Room/IBackend.php +++ b/lib/public/Calendar/Room/IBackend.php @@ -22,6 +22,7 @@ */ namespace OCP\Calendar\Room; +use OCP\Calendar\BackendTemporarilyUnavailableException; /** * Interface IBackend @@ -34,6 +35,7 @@ interface IBackend { /** * get a list of all rooms in this backend * + * @throws BackendTemporarilyUnavailableException * @return IRoom[] */ public function getAllRooms():array; @@ -41,6 +43,7 @@ interface IBackend { /** * get a list of all room identifiers in this backend * + * @throws BackendTemporarilyUnavailableException * @return string[] */ public function listAllRooms():array; @@ -49,6 +52,7 @@ interface IBackend { * get a room by it's id * * @param string $id + * @throws BackendTemporarilyUnavailableException * @return IRoom|null */ public function getRoom($id); diff --git a/lib/public/Calendar/Room/IManager.php b/lib/public/Calendar/Room/IManager.php index a04e75c41b4..6f55f0f76c0 100644 --- a/lib/public/Calendar/Room/IManager.php +++ b/lib/public/Calendar/Room/IManager.php @@ -50,6 +50,12 @@ interface IManager { public function getBackends():array; /** + * @param string $backendId + * @return IBackend + */ + public function getBackend($backendId):IBackend; + + /** * removes all registered backend instances * @return void * @since 14.0.0 |