summaryrefslogtreecommitdiffstats
path: root/lib/private/Collaboration
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Collaboration')
-rw-r--r--lib/private/Collaboration/Collaborators/GroupPlugin.php8
-rw-r--r--lib/private/Collaboration/Collaborators/LookupPlugin.php4
-rw-r--r--lib/private/Collaboration/Collaborators/MailPlugin.php12
-rw-r--r--lib/private/Collaboration/Collaborators/RemoteGroupPlugin.php3
-rw-r--r--lib/private/Collaboration/Collaborators/RemotePlugin.php10
-rw-r--r--lib/private/Collaboration/Collaborators/UserPlugin.php4
6 files changed, 21 insertions, 20 deletions
diff --git a/lib/private/Collaboration/Collaborators/GroupPlugin.php b/lib/private/Collaboration/Collaborators/GroupPlugin.php
index 4816fdd7c04..d4051cab36f 100644
--- a/lib/private/Collaboration/Collaborators/GroupPlugin.php
+++ b/lib/private/Collaboration/Collaborators/GroupPlugin.php
@@ -34,7 +34,7 @@ use OCP\IConfig;
use OCP\IGroup;
use OCP\IGroupManager;
use OCP\IUserSession;
-use OCP\Share;
+use OCP\Share\IShare;
class GroupPlugin implements ISearchPlugin {
protected $shareeEnumeration;
@@ -95,7 +95,7 @@ class GroupPlugin implements ISearchPlugin {
$result['exact'][] = [
'label' => $group->getDisplayName(),
'value' => [
- 'shareType' => Share::SHARE_TYPE_GROUP,
+ 'shareType' => IShare::TYPE_GROUP,
'shareWith' => $gid,
],
];
@@ -106,7 +106,7 @@ class GroupPlugin implements ISearchPlugin {
$result['wide'][] = [
'label' => $group->getDisplayName(),
'value' => [
- 'shareType' => Share::SHARE_TYPE_GROUP,
+ 'shareType' => IShare::TYPE_GROUP,
'shareWith' => $gid,
],
];
@@ -121,7 +121,7 @@ class GroupPlugin implements ISearchPlugin {
$result['exact'][] = [
'label' => $group->getDisplayName(),
'value' => [
- 'shareType' => Share::SHARE_TYPE_GROUP,
+ 'shareType' => IShare::TYPE_GROUP,
'shareWith' => $group->getGID(),
],
];
diff --git a/lib/private/Collaboration/Collaborators/LookupPlugin.php b/lib/private/Collaboration/Collaborators/LookupPlugin.php
index f0d5b92f18a..ab36d712d2a 100644
--- a/lib/private/Collaboration/Collaborators/LookupPlugin.php
+++ b/lib/private/Collaboration/Collaborators/LookupPlugin.php
@@ -34,7 +34,7 @@ use OCP\Http\Client\IClientService;
use OCP\IConfig;
use OCP\ILogger;
use OCP\IUserSession;
-use OCP\Share;
+use OCP\Share\IShare;
class LookupPlugin implements ISearchPlugin {
@@ -107,7 +107,7 @@ class LookupPlugin implements ISearchPlugin {
$result[] = [
'label' => $label,
'value' => [
- 'shareType' => Share::SHARE_TYPE_REMOTE,
+ 'shareType' => IShare::TYPE_REMOTE,
'shareWith' => $lookup['federationId'],
],
'extra' => $lookup,
diff --git a/lib/private/Collaboration/Collaborators/MailPlugin.php b/lib/private/Collaboration/Collaborators/MailPlugin.php
index f912690cb72..90dc5919176 100644
--- a/lib/private/Collaboration/Collaborators/MailPlugin.php
+++ b/lib/private/Collaboration/Collaborators/MailPlugin.php
@@ -37,7 +37,7 @@ use OCP\IConfig;
use OCP\IGroupManager;
use OCP\IUser;
use OCP\IUserSession;
-use OCP\Share;
+use OCP\Share\IShare;
class MailPlugin implements ISearchPlugin {
protected $shareeEnumeration;
@@ -133,7 +133,7 @@ class MailPlugin implements ISearchPlugin {
'uuid' => $contact['UID'],
'name' => $contact['FN'],
'value' => [
- 'shareType' => Share::SHARE_TYPE_USER,
+ 'shareType' => IShare::TYPE_USER,
'shareWith' => $cloud->getUser(),
],
]];
@@ -167,7 +167,7 @@ class MailPlugin implements ISearchPlugin {
'uuid' => $contact['UID'],
'name' => $contact['FN'],
'value' => [
- 'shareType' => Share::SHARE_TYPE_USER,
+ 'shareType' => IShare::TYPE_USER,
'shareWith' => $cloud->getUser(),
],
];
@@ -188,7 +188,7 @@ class MailPlugin implements ISearchPlugin {
'name' => $contact['FN'],
'type' => $emailAddressType ?? '',
'value' => [
- 'shareType' => Share::SHARE_TYPE_EMAIL,
+ 'shareType' => IShare::TYPE_EMAIL,
'shareWith' => $emailAddress,
],
];
@@ -199,7 +199,7 @@ class MailPlugin implements ISearchPlugin {
'name' => $contact['FN'],
'type' => $emailAddressType ?? '',
'value' => [
- 'shareType' => Share::SHARE_TYPE_EMAIL,
+ 'shareType' => IShare::TYPE_EMAIL,
'shareWith' => $emailAddress,
],
];
@@ -226,7 +226,7 @@ class MailPlugin implements ISearchPlugin {
'label' => $search,
'uuid' => $search,
'value' => [
- 'shareType' => Share::SHARE_TYPE_EMAIL,
+ 'shareType' => IShare::TYPE_EMAIL,
'shareWith' => $search,
],
];
diff --git a/lib/private/Collaboration/Collaborators/RemoteGroupPlugin.php b/lib/private/Collaboration/Collaborators/RemoteGroupPlugin.php
index 777af6093db..17e7793a685 100644
--- a/lib/private/Collaboration/Collaborators/RemoteGroupPlugin.php
+++ b/lib/private/Collaboration/Collaborators/RemoteGroupPlugin.php
@@ -30,6 +30,7 @@ use OCP\Collaboration\Collaborators\SearchResultType;
use OCP\Federation\ICloudFederationProviderManager;
use OCP\Federation\ICloudIdManager;
use OCP\Share;
+use OCP\Share\IShare;
class RemoteGroupPlugin implements ISearchPlugin {
protected $shareeEnumeration;
@@ -63,7 +64,7 @@ class RemoteGroupPlugin implements ISearchPlugin {
'guid' => $remoteGroup,
'name' => $remoteGroup,
'value' => [
- 'shareType' => Share::SHARE_TYPE_REMOTE_GROUP,
+ 'shareType' => IShare::TYPE_REMOTE_GROUP,
'shareWith' => $search,
'server' => $serverUrl,
],
diff --git a/lib/private/Collaboration/Collaborators/RemotePlugin.php b/lib/private/Collaboration/Collaborators/RemotePlugin.php
index 81e05050d2e..af94027fbe9 100644
--- a/lib/private/Collaboration/Collaborators/RemotePlugin.php
+++ b/lib/private/Collaboration/Collaborators/RemotePlugin.php
@@ -35,7 +35,7 @@ use OCP\Federation\ICloudIdManager;
use OCP\IConfig;
use OCP\IUserManager;
use OCP\IUserSession;
-use OCP\Share;
+use OCP\Share\IShare;
class RemotePlugin implements ISearchPlugin {
protected $shareeEnumeration;
@@ -101,7 +101,7 @@ class RemotePlugin implements ISearchPlugin {
'label' => $contact['FN'],
'uuid' => $contact['UID'],
'value' => [
- 'shareType' => Share::SHARE_TYPE_USER,
+ 'shareType' => IShare::TYPE_USER,
'shareWith' => $remoteUser
]
];
@@ -117,7 +117,7 @@ class RemotePlugin implements ISearchPlugin {
'name' => $contact['FN'],
'type' => $cloudIdType,
'value' => [
- 'shareType' => Share::SHARE_TYPE_REMOTE,
+ 'shareType' => IShare::TYPE_REMOTE,
'shareWith' => $cloudId,
'server' => $serverUrl,
],
@@ -129,7 +129,7 @@ class RemotePlugin implements ISearchPlugin {
'name' => $contact['FN'],
'type' => $cloudIdType,
'value' => [
- 'shareType' => Share::SHARE_TYPE_REMOTE,
+ 'shareType' => IShare::TYPE_REMOTE,
'shareWith' => $cloudId,
'server' => $serverUrl,
],
@@ -158,7 +158,7 @@ class RemotePlugin implements ISearchPlugin {
'uuid' => $remoteUser,
'name' => $remoteUser,
'value' => [
- 'shareType' => Share::SHARE_TYPE_REMOTE,
+ 'shareType' => IShare::TYPE_REMOTE,
'shareWith' => $search,
'server' => $serverUrl,
],
diff --git a/lib/private/Collaboration/Collaborators/UserPlugin.php b/lib/private/Collaboration/Collaborators/UserPlugin.php
index 123fa731445..c5600fce070 100644
--- a/lib/private/Collaboration/Collaborators/UserPlugin.php
+++ b/lib/private/Collaboration/Collaborators/UserPlugin.php
@@ -115,7 +115,7 @@ class UserPlugin implements ISearchPlugin {
$result['exact'][] = [
'label' => $userDisplayName,
'value' => [
- 'shareType' => Share::SHARE_TYPE_USER,
+ 'shareType' => IShare::TYPE_USER,
'shareWith' => $uid,
],
];
@@ -161,7 +161,7 @@ class UserPlugin implements ISearchPlugin {
$result['exact'][] = [
'label' => $user->getDisplayName(),
'value' => [
- 'shareType' => Share::SHARE_TYPE_USER,
+ 'shareType' => IShare::TYPE_USER,
'shareWith' => $user->getUID(),
],
];