Files
grnd-alt 68d1d1e50e fix(dav): use boolean type for yes/no lexicon entries
Assisted-by: ClaudeCode:claude-sonnet-5-5
Signed-off-by: grnd-alt <git@belakkaf.net>
2026-11-04 21:00:01 +01:00

81 lines
2.1 KiB
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\DAV;
use OCP\Config\Lexicon\Entry;
use OCP\Config\Lexicon\ILexicon;
use OCP\Config\Lexicon\Strictness;
use OCP\Config\ValueType;
/**
* Config Lexicon for files_sharing.
*
* Please Add & Manage your Config Keys in that file and keep the Lexicon up to date!
*
* {@see ILexicon}
*/
class ConfigLexicon implements ILexicon {
public const ENABLE_CALENDAR_FEDERATION = 'enableCalendarFederation';
public const SEND_INVITATIONS = 'sendInvitations';
public const HIDE_ABSENCE_SETTINGS = 'hide_absence_settings';
public const ALLOW_CALENDAR_LINK_SUBSCRIPTIONS = 'allow_calendar_link_subscriptions';
public const DISABLE_FREE_BUSY = 'disableFreeBusy';
public const SYSTEM_ADDRESSBOOK_EXPOSED = 'system_addressbook_exposed';
public function getStrictness(): Strictness {
return Strictness::NOTICE;
}
public function getAppConfigs(): array {
return [
new Entry(
self::ENABLE_CALENDAR_FEDERATION,
ValueType::BOOL,
defaultRaw: true,
definition: 'Whether calendars can be shared with and received from other Nextcloud servers',
),
new Entry(
self::SEND_INVITATIONS,
ValueType::BOOL,
defaultRaw: true,
definition: 'Whether to send invitation emails for events with attendees',
),
new Entry(
self::HIDE_ABSENCE_SETTINGS,
ValueType::BOOL,
defaultRaw: false,
definition: 'Whether to hide the absence (out-of-office) settings from users',
),
new Entry(
self::ALLOW_CALENDAR_LINK_SUBSCRIPTIONS,
ValueType::BOOL,
defaultRaw: true,
definition: 'Whether users can subscribe to calendars by link',
),
new Entry(
self::DISABLE_FREE_BUSY,
ValueType::BOOL,
defaultRaw: false,
definition: 'Whether to disable the free/busy lookup on user outboxes',
),
new Entry(
self::SYSTEM_ADDRESSBOOK_EXPOSED,
ValueType::BOOL,
defaultRaw: true,
definition: 'Whether to not expose the system address book to users',
lazy: true,
),
];
}
public function getUserConfigs(): array {
return [];
}
}