diff options
author | Georg Ehrke <developer@georgehrke.com> | 2018-05-28 21:12:13 +0300 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2018-06-25 05:58:07 +0300 |
commit | 2da510af0b537e3bef7d0563eff828bade51fcbd (patch) | |
tree | a5e5d3ec9884ba47853bf87577a546110a718cd2 /apps/dav/lib/CalDAV/ResourceBooking/RoomPrincipalBackend.php | |
parent | 29b777e7d1d26a3b75b0aabcca394170e6043939 (diff) |
add resource / room principals
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps/dav/lib/CalDAV/ResourceBooking/RoomPrincipalBackend.php')
-rw-r--r-- | apps/dav/lib/CalDAV/ResourceBooking/RoomPrincipalBackend.php | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/apps/dav/lib/CalDAV/ResourceBooking/RoomPrincipalBackend.php b/apps/dav/lib/CalDAV/ResourceBooking/RoomPrincipalBackend.php new file mode 100644 index 00000000000..0052ee9e62c --- /dev/null +++ b/apps/dav/lib/CalDAV/ResourceBooking/RoomPrincipalBackend.php @@ -0,0 +1,42 @@ +<?php +/** + * @copyright 2018, Georg Ehrke <oc.list@georgehrke.com> + * + * @author Georg Ehrke <oc.list@georgehrke.com> + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ +namespace OCA\DAV\CalDAV\ResourceBooking; + +use OCP\IDBConnection; +use OCP\IGroupManager; +use OCP\IUserSession; + +class RoomPrincipalBackend extends AbstractPrincipalBackend { + + /** + * @param IDBConnection $dbConnection + * @param IUserSession $userSession + * @param IGroupManager $groupManager + */ + public function __construct(IDBConnection $dbConnection, + IUserSession $userSession, + IGroupManager $groupManager) { + parent::__construct($dbConnection, $userSession, $groupManager, + 'principals/calendar-rooms', 'rooms'); + } +} |