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/private | |
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/private')
-rw-r--r-- | lib/private/Calendar/Resource/Manager.php | 12 | ||||
-rw-r--r-- | lib/private/Calendar/Room/Manager.php | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/lib/private/Calendar/Resource/Manager.php b/lib/private/Calendar/Resource/Manager.php index 0cb4a739b7e..2d1746cb989 100644 --- a/lib/private/Calendar/Resource/Manager.php +++ b/lib/private/Calendar/Resource/Manager.php @@ -61,6 +61,18 @@ class Manager implements \OCP\Calendar\Resource\IManager { } /** + * @param string $backendId + * @return IBackend|null + */ + public function getBackend($backendId):IBackend { + if (!isset($this->backends[$backendId])) { + return null; + } + + return $this->backends[$backendId]; + } + + /** * removes all registered backend instances * @return void * @since 14.0.0 diff --git a/lib/private/Calendar/Room/Manager.php b/lib/private/Calendar/Room/Manager.php index ac446aca944..9ddf1f1d7b7 100644 --- a/lib/private/Calendar/Room/Manager.php +++ b/lib/private/Calendar/Room/Manager.php @@ -61,6 +61,18 @@ class Manager implements \OCP\Calendar\Room\IManager { } /** + * @param string $backendId + * @return IBackend|null + */ + public function getBackend($backendId):IBackend { + if (!isset($this->backends[$backendId])) { + return null; + } + + return $this->backends[$backendId]; + } + + /** * removes all registered backend instances * @return void * @since 14.0.0 |