2016-12-13 10:30:08 +01:00
|
|
|
<?php
|
|
|
|
/**
|
2024-06-03 10:23:34 +02:00
|
|
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2016-12-13 10:30:08 +01:00
|
|
|
*/
|
2019-09-17 16:33:27 +02:00
|
|
|
namespace OCA\Settings\Activity;
|
2016-12-13 10:30:08 +01:00
|
|
|
|
|
|
|
use OCP\Activity\ISetting;
|
|
|
|
use OCP\IL10N;
|
|
|
|
|
2017-05-16 09:37:21 +02:00
|
|
|
class SecuritySetting implements ISetting {
|
2016-12-13 10:30:08 +01:00
|
|
|
|
|
|
|
/** @var IL10N */
|
|
|
|
private $l10n;
|
|
|
|
|
|
|
|
public function __construct(IL10N $l10n) {
|
|
|
|
$this->l10n = $l10n;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function canChangeMail() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function canChangeStream() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getIdentifier() {
|
2017-05-16 09:37:21 +02:00
|
|
|
return 'security';
|
2016-12-13 10:30:08 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getName() {
|
2017-05-16 09:37:21 +02:00
|
|
|
return $this->l10n->t('Security');
|
2016-12-13 10:30:08 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getPriority() {
|
|
|
|
return 30;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function isDefaultEnabledMail() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function isDefaultEnabledStream() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|