Skip to content

Commit 2fd88b6

Browse files
Merge pull request #62640 from nextcloud/refactor/sharing/ocp-to-ncu
refactor(Sharing): Move from OCP to NCU
2 parents 4c3511e + 4b94c94 commit 2fd88b6

109 files changed

Lines changed: 623 additions & 618 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/dav/composer/composer/autoload_static.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
class ComposerStaticInitDAV
88
{
99
public static $prefixLengthsPsr4 = array (
10-
'O' =>
10+
'O' =>
1111
array (
1212
'OCA\\DAV\\' => 8,
1313
),
1414
);
1515

1616
public static $prefixDirsPsr4 = array (
17-
'OCA\\DAV\\' =>
17+
'OCA\\DAV\\' =>
1818
array (
1919
0 => __DIR__ . '/..' . '/../lib',
2020
),

apps/files/lib/AppInfo/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
namespace OCA\Files\AppInfo;
1111

12+
use NCU\Sharing\ISharingRegistry;
1213
use OC\Core\Sharing\Permission\EditSharePermissionPreset;
1314
use OC\Core\Sharing\Permission\ViewSharePermissionPreset;
1415
use OC\Core\Sharing\Property\ExpirationDateSharePropertyType;
@@ -60,7 +61,6 @@
6061
use OCP\Share\Events\ShareCreatedEvent;
6162
use OCP\Share\Events\ShareDeletedEvent;
6263
use OCP\Share\Events\ShareDeletedFromSelfEvent;
63-
use OCP\Sharing\ISharingRegistry;
6464
use OCP\User\Events\UserFirstTimeLoggedInEvent;
6565

6666
class Application extends App implements IBootstrap {

apps/files/lib/Sharing/Permission/NodeCreateSharePermissionType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
namespace OCA\Files\Sharing\Permission;
1111

12+
use NCU\Sharing\Permission\ISharePermissionType;
1213
use OCA\Files\AppInfo\Application;
1314
use OCP\Constants;
1415
use OCP\IAppConfig;
1516
use OCP\L10N\IFactory;
16-
use OCP\Sharing\Permission\ISharePermissionType;
1717

1818
final readonly class NodeCreateSharePermissionType implements ISharePermissionType {
1919
public function __construct(

apps/files/lib/Sharing/Permission/NodeDeleteSharePermissionType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
namespace OCA\Files\Sharing\Permission;
1111

12+
use NCU\Sharing\Permission\ISharePermissionType;
1213
use OCA\Files\AppInfo\Application;
1314
use OCP\Constants;
1415
use OCP\IAppConfig;
1516
use OCP\L10N\IFactory;
16-
use OCP\Sharing\Permission\ISharePermissionType;
1717

1818
final readonly class NodeDeleteSharePermissionType implements ISharePermissionType {
1919
public function __construct(

apps/files/lib/Sharing/Permission/NodeDownloadSharePermissionType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99

1010
namespace OCA\Files\Sharing\Permission;
1111

12+
use NCU\Sharing\Permission\ISharePermissionType;
1213
use OCA\Files\AppInfo\Application;
1314
use OCP\L10N\IFactory;
1415
use OCP\Share\IManager;
15-
use OCP\Sharing\Permission\ISharePermissionType;
1616

1717
final readonly class NodeDownloadSharePermissionType implements ISharePermissionType {
1818
public function __construct(

apps/files/lib/Sharing/Permission/NodeReadSharePermissionType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010
namespace OCA\Files\Sharing\Permission;
1111

12+
use NCU\Sharing\Permission\ISharePermissionType;
1213
use OCA\Files\AppInfo\Application;
1314
use OCP\L10N\IFactory;
14-
use OCP\Sharing\Permission\ISharePermissionType;
1515

1616
final class NodeReadSharePermissionType implements ISharePermissionType {
1717
#[\Override]

apps/files/lib/Sharing/Permission/NodeUpdateSharePermissionType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
namespace OCA\Files\Sharing\Permission;
1111

12+
use NCU\Sharing\Permission\ISharePermissionType;
1213
use OCA\Files\AppInfo\Application;
1314
use OCP\Constants;
1415
use OCP\IAppConfig;
1516
use OCP\L10N\IFactory;
16-
use OCP\Sharing\Permission\ISharePermissionType;
1717

1818
final readonly class NodeUpdateSharePermissionType implements ISharePermissionType {
1919
public function __construct(

apps/files/lib/Sharing/Property/NodeGridViewSharePropertyType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99

1010
namespace OCA\Files\Sharing\Property;
1111

12+
use NCU\Sharing\Property\ABooleanSharePropertyType;
13+
use NCU\Sharing\Share;
1214
use OCA\Files\AppInfo\Application;
1315
use OCP\L10N\IFactory;
14-
use OCP\Sharing\Property\ABooleanSharePropertyType;
15-
use OCP\Sharing\Share;
1616

1717
final class NodeGridViewSharePropertyType extends ABooleanSharePropertyType {
1818
#[\Override]

apps/files/lib/Sharing/Source/NodeShareSourceType.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
namespace OCA\Files\Sharing\Source;
1111

1212
use Exception;
13+
use NCU\Sharing\Icon\ShareIconURL;
14+
use NCU\Sharing\ISharingManager;
15+
use NCU\Sharing\ShareAccessContext;
16+
use NCU\Sharing\Source\IShareSourceType;
17+
use NCU\Sharing\Source\ShareSource;
1318
use OCA\Files\AppInfo\Application;
1419
use OCA\Files_Trashbin\Events\MoveToTrashEvent;
1520
use OCP\EventDispatcher\Event;
@@ -23,11 +28,6 @@
2328
use OCP\Interaction\Resources\NodeResource;
2429
use OCP\IURLGenerator;
2530
use OCP\L10N\IFactory;
26-
use OCP\Sharing\Icon\ShareIconURL;
27-
use OCP\Sharing\ISharingManager;
28-
use OCP\Sharing\ShareAccessContext;
29-
use OCP\Sharing\Source\IShareSourceType;
30-
use OCP\Sharing\Source\ShareSource;
3131

3232
/**
3333
* @template-implements IEventListener<NodeDeletedEvent|MoveToTrashEvent>

apps/files/tests/Sharing/Source/NodeShareSourceTypeTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77

88
declare(strict_types=1);
99

10+
use NCU\Sharing\ISharingManager;
11+
use NCU\Sharing\ISharingRegistry;
12+
use NCU\Sharing\ShareAccessContext;
13+
use NCU\Sharing\Source\ShareSource;
1014
use OC\Files\Filesystem;
1115
use OC\User\Database;
1216
use OCA\Files\Sharing\Source\NodeShareSourceType;
@@ -19,10 +23,6 @@
1923
use OCP\IUser;
2024
use OCP\IUserManager;
2125
use OCP\Server;
22-
use OCP\Sharing\ISharingManager;
23-
use OCP\Sharing\ISharingRegistry;
24-
use OCP\Sharing\ShareAccessContext;
25-
use OCP\Sharing\Source\ShareSource;
2626
use PHPUnit\Framework\Attributes\Group;
2727
use Test\TestCase;
2828

0 commit comments

Comments
 (0)