summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Service
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/lib/Service')
-rw-r--r--apps/files_external/lib/Service/GlobalStoragesService.php18
-rw-r--r--apps/files_external/lib/Service/LegacyStoragesService.php8
-rw-r--r--apps/files_external/lib/Service/UserLegacyStoragesService.php2
-rw-r--r--apps/files_external/lib/Service/UserStoragesService.php2
4 files changed, 15 insertions, 15 deletions
diff --git a/apps/files_external/lib/Service/GlobalStoragesService.php b/apps/files_external/lib/Service/GlobalStoragesService.php
index 95a7c47665d..2905e08883e 100644
--- a/apps/files_external/lib/Service/GlobalStoragesService.php
+++ b/apps/files_external/lib/Service/GlobalStoragesService.php
@@ -51,7 +51,7 @@ class GlobalStoragesService extends StoragesService {
$this->triggerApplicableHooks(
$signal,
$storage->getMountPoint(),
- \OC_Mount_Config::MOUNT_TYPE_USER,
+ \OCA\Files_External\MountConfig::MOUNT_TYPE_USER,
['all']
);
return;
@@ -60,13 +60,13 @@ class GlobalStoragesService extends StoragesService {
$this->triggerApplicableHooks(
$signal,
$storage->getMountPoint(),
- \OC_Mount_Config::MOUNT_TYPE_USER,
+ \OCA\Files_External\MountConfig::MOUNT_TYPE_USER,
$applicableUsers
);
$this->triggerApplicableHooks(
$signal,
$storage->getMountPoint(),
- \OC_Mount_Config::MOUNT_TYPE_GROUP,
+ \OCA\Files_External\MountConfig::MOUNT_TYPE_GROUP,
$applicableGroups
);
}
@@ -100,7 +100,7 @@ class GlobalStoragesService extends StoragesService {
$this->triggerApplicableHooks(
Filesystem::signal_delete_mount,
$oldStorage->getMountPoint(),
- \OC_Mount_Config::MOUNT_TYPE_USER,
+ \OCA\Files_External\MountConfig::MOUNT_TYPE_USER,
['all']
);
}
@@ -109,7 +109,7 @@ class GlobalStoragesService extends StoragesService {
$this->triggerApplicableHooks(
Filesystem::signal_delete_mount,
$oldStorage->getMountPoint(),
- \OC_Mount_Config::MOUNT_TYPE_USER,
+ \OCA\Files_External\MountConfig::MOUNT_TYPE_USER,
$userDeletions
);
@@ -117,7 +117,7 @@ class GlobalStoragesService extends StoragesService {
$this->triggerApplicableHooks(
Filesystem::signal_delete_mount,
$oldStorage->getMountPoint(),
- \OC_Mount_Config::MOUNT_TYPE_GROUP,
+ \OCA\Files_External\MountConfig::MOUNT_TYPE_GROUP,
$groupDeletions
);
@@ -125,7 +125,7 @@ class GlobalStoragesService extends StoragesService {
$this->triggerApplicableHooks(
Filesystem::signal_create_mount,
$newStorage->getMountPoint(),
- \OC_Mount_Config::MOUNT_TYPE_USER,
+ \OCA\Files_External\MountConfig::MOUNT_TYPE_USER,
$userAdditions
);
@@ -133,7 +133,7 @@ class GlobalStoragesService extends StoragesService {
$this->triggerApplicableHooks(
Filesystem::signal_create_mount,
$newStorage->getMountPoint(),
- \OC_Mount_Config::MOUNT_TYPE_GROUP,
+ \OCA\Files_External\MountConfig::MOUNT_TYPE_GROUP,
$groupAdditions
);
@@ -145,7 +145,7 @@ class GlobalStoragesService extends StoragesService {
$this->triggerApplicableHooks(
Filesystem::signal_create_mount,
$newStorage->getMountPoint(),
- \OC_Mount_Config::MOUNT_TYPE_USER,
+ \OCA\Files_External\MountConfig::MOUNT_TYPE_USER,
['all']
);
}
diff --git a/apps/files_external/lib/Service/LegacyStoragesService.php b/apps/files_external/lib/Service/LegacyStoragesService.php
index fef746a35c0..faaf40ba028 100644
--- a/apps/files_external/lib/Service/LegacyStoragesService.php
+++ b/apps/files_external/lib/Service/LegacyStoragesService.php
@@ -83,13 +83,13 @@ abstract class LegacyStoragesService {
$storageOptions['priority'] = $backend->getPriority();
}
$storageConfig->setPriority($storageOptions['priority']);
- if ($mountType === \OC_Mount_Config::MOUNT_TYPE_USER) {
+ if ($mountType === \OCA\Files_External\MountConfig::MOUNT_TYPE_USER) {
$applicableUsers = $storageConfig->getApplicableUsers();
if ($applicable !== 'all') {
$applicableUsers[] = $applicable;
$storageConfig->setApplicableUsers($applicableUsers);
}
- } elseif ($mountType === \OC_Mount_Config::MOUNT_TYPE_GROUP) {
+ } elseif ($mountType === \OCA\Files_External\MountConfig::MOUNT_TYPE_GROUP) {
$applicableGroups = $storageConfig->getApplicableGroups();
$applicableGroups[] = $applicable;
$storageConfig->setApplicableGroups($applicableGroups);
@@ -150,7 +150,7 @@ abstract class LegacyStoragesService {
$relativeMountPath = rtrim($parts[2], '/');
// note: we cannot do this after the loop because the decrypted config
// options might be needed for the config hash
- $storageOptions['options'] = \OC_Mount_Config::decryptPasswords($storageOptions['options']);
+ $storageOptions['options'] = \OCA\Files_External\MountConfig::decryptPasswords($storageOptions['options']);
if (!isset($storageOptions['backend'])) {
$storageOptions['backend'] = $storageOptions['class']; // legacy compat
}
@@ -168,7 +168,7 @@ abstract class LegacyStoragesService {
// but at this point we don't know the max-id, so use
// first group it by config hash
$storageOptions['mountpoint'] = $rootMountPath;
- $configId = \OC_Mount_Config::makeConfigHash($storageOptions);
+ $configId = \OCA\Files_External\MountConfig::makeConfigHash($storageOptions);
if (isset($storagesWithConfigHash[$configId])) {
$currentStorage = $storagesWithConfigHash[$configId];
}
diff --git a/apps/files_external/lib/Service/UserLegacyStoragesService.php b/apps/files_external/lib/Service/UserLegacyStoragesService.php
index 3ffd49863b9..ea3794384ba 100644
--- a/apps/files_external/lib/Service/UserLegacyStoragesService.php
+++ b/apps/files_external/lib/Service/UserLegacyStoragesService.php
@@ -51,6 +51,6 @@ class UserLegacyStoragesService extends LegacyStoragesService {
protected function readLegacyConfig() {
// read user config
$user = $this->userSession->getUser()->getUID();
- return \OC_Mount_Config::readData($user);
+ return \OCA\Files_External\MountConfig::readData($user);
}
}
diff --git a/apps/files_external/lib/Service/UserStoragesService.php b/apps/files_external/lib/Service/UserStoragesService.php
index 7b793ca819e..411a1a54dd6 100644
--- a/apps/files_external/lib/Service/UserStoragesService.php
+++ b/apps/files_external/lib/Service/UserStoragesService.php
@@ -78,7 +78,7 @@ class UserStoragesService extends StoragesService {
$this->triggerApplicableHooks(
$signal,
$storage->getMountPoint(),
- \OC_Mount_Config::MOUNT_TYPE_USER,
+ \OCA\Files_External\MountConfig::MOUNT_TYPE_USER,
[$user]
);
}