match ($p) { Preset::FAMILY, Preset::PRIVATE => true, default => false, }, definition: 'Allow users to customize share URL', lazy: true, note: 'Shares with guessable tokens may be accessed easily. Shares with custom tokens will continue to be accessible after this setting has been disabled.', ), new Entry(self::SHARE_LINK_PASSWORD_DEFAULT, ValueType::BOOL, false, 'Ask for a password when sharing document by default'), new Entry( key: self::SHARE_LINK_PASSWORD_ENFORCED, type: ValueType::BOOL, defaultRaw: fn (Preset $p): bool => match ($p) { Preset::SCHOOL, Preset::UNIVERSITY, Preset::SHARED, Preset::SMALL, Preset::MEDIUM, Preset::LARGE => true, default => false, }, definition: 'Enforce password protection for shared documents' ), new Entry( key: self::SHARE_LINK_EXPIRE_DATE_DEFAULT, type: ValueType::BOOL, defaultRaw: fn (Preset $p): bool => match ($p) { Preset::SHARED, Preset::SMALL, Preset::MEDIUM, Preset::LARGE => true, default => false, }, definition: 'Default expiration date for shares via link or mail' ), new Entry( key: self::SHARE_LINK_EXPIRE_DATE_ENFORCED, type: ValueType::BOOL, defaultRaw: fn (Preset $p): bool => match ($p) { Preset::SHARED, Preset::SMALL, Preset::MEDIUM, Preset::LARGE => true, default => false, }, definition: 'Enforce expiration date for shares via link or mail' ), new Entry(self::LASTCRON_TIMESTAMP, ValueType::INT, 0, 'timestamp of last cron execution'), new Entry(self::OCM_DISCOVERY_ENABLED, ValueType::BOOL, true, 'enable/disable OCM', lazy: true), new Entry(self::OCM_INVITE_ACCEPT_DIALOG, ValueType::STRING, '', 'route to local invite accept dialog', lazy: true, note: 'set as empty string to disable feature'), new Entry(self::UNIFIED_SEARCH_MIN_SEARCH_LENGTH, ValueType::INT, 1, 'Minimum search length to trigger the request', lazy: false, rename: 'unified-search.min-search-length'), ]; } public function getUserConfigs(): array { return [ new Entry(self::USER_LANGUAGE, ValueType::STRING, definition: 'language'), new Entry(self::USER_LOCALE, ValueType::STRING, definition: 'locale'), new Entry(self::USER_TIMEZONE, ValueType::STRING, definition: 'timezone'), ]; } }