@@ -6,89 +6,89 @@ |
||
| 6 | 6 | |
| 7 | 7 | class ComposerStaticInitFiles_Sharing |
| 8 | 8 | { |
| 9 | - public static $prefixLengthsPsr4 = array ( |
|
| 9 | + public static $prefixLengthsPsr4 = array( |
|
| 10 | 10 | 'O' => |
| 11 | - array ( |
|
| 11 | + array( |
|
| 12 | 12 | 'OCA\\Files_Sharing\\' => 18, |
| 13 | 13 | ), |
| 14 | 14 | ); |
| 15 | 15 | |
| 16 | - public static $prefixDirsPsr4 = array ( |
|
| 16 | + public static $prefixDirsPsr4 = array( |
|
| 17 | 17 | 'OCA\\Files_Sharing\\' => |
| 18 | - array ( |
|
| 19 | - 0 => __DIR__ . '/..' . '/../lib', |
|
| 18 | + array( |
|
| 19 | + 0 => __DIR__.'/..'.'/../lib', |
|
| 20 | 20 | ), |
| 21 | 21 | ); |
| 22 | 22 | |
| 23 | - public static $classMap = array ( |
|
| 24 | - 'OCA\\Files_Sharing\\Activity\\Filter' => __DIR__ . '/..' . '/../lib/Activity/Filter.php', |
|
| 25 | - 'OCA\\Files_Sharing\\Activity\\Providers\\Base' => __DIR__ . '/..' . '/../lib/Activity/Providers/Base.php', |
|
| 26 | - 'OCA\\Files_Sharing\\Activity\\Providers\\Downloads' => __DIR__ . '/..' . '/../lib/Activity/Providers/Downloads.php', |
|
| 27 | - 'OCA\\Files_Sharing\\Activity\\Providers\\Groups' => __DIR__ . '/..' . '/../lib/Activity/Providers/Groups.php', |
|
| 28 | - 'OCA\\Files_Sharing\\Activity\\Providers\\PublicLinks' => __DIR__ . '/..' . '/../lib/Activity/Providers/PublicLinks.php', |
|
| 29 | - 'OCA\\Files_Sharing\\Activity\\Providers\\RemoteShares' => __DIR__ . '/..' . '/../lib/Activity/Providers/RemoteShares.php', |
|
| 30 | - 'OCA\\Files_Sharing\\Activity\\Providers\\Users' => __DIR__ . '/..' . '/../lib/Activity/Providers/Users.php', |
|
| 31 | - 'OCA\\Files_Sharing\\Activity\\Settings\\PublicLinks' => __DIR__ . '/..' . '/../lib/Activity/Settings/PublicLinks.php', |
|
| 32 | - 'OCA\\Files_Sharing\\Activity\\Settings\\RemoteShare' => __DIR__ . '/..' . '/../lib/Activity/Settings/RemoteShare.php', |
|
| 33 | - 'OCA\\Files_Sharing\\Activity\\Settings\\Shared' => __DIR__ . '/..' . '/../lib/Activity/Settings/Shared.php', |
|
| 34 | - 'OCA\\Files_Sharing\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php', |
|
| 35 | - 'OCA\\Files_Sharing\\BackgroundJob\\FederatedSharesDiscoverJob' => __DIR__ . '/..' . '/../lib/BackgroundJob/FederatedSharesDiscoverJob.php', |
|
| 36 | - 'OCA\\Files_Sharing\\Cache' => __DIR__ . '/..' . '/../lib/Cache.php', |
|
| 37 | - 'OCA\\Files_Sharing\\Capabilities' => __DIR__ . '/..' . '/../lib/Capabilities.php', |
|
| 38 | - 'OCA\\Files_Sharing\\Collaboration\\ShareRecipientSorter' => __DIR__ . '/..' . '/../lib/Collaboration/ShareRecipientSorter.php', |
|
| 39 | - 'OCA\\Files_Sharing\\Command\\CleanupRemoteStorages' => __DIR__ . '/..' . '/../lib/Command/CleanupRemoteStorages.php', |
|
| 40 | - 'OCA\\Files_Sharing\\Command\\ExiprationNotification' => __DIR__ . '/..' . '/../lib/Command/ExiprationNotification.php', |
|
| 41 | - 'OCA\\Files_Sharing\\Controller\\AcceptController' => __DIR__ . '/..' . '/../lib/Controller/AcceptController.php', |
|
| 42 | - 'OCA\\Files_Sharing\\Controller\\DeletedShareAPIController' => __DIR__ . '/..' . '/../lib/Controller/DeletedShareAPIController.php', |
|
| 43 | - 'OCA\\Files_Sharing\\Controller\\ExternalSharesController' => __DIR__ . '/..' . '/../lib/Controller/ExternalSharesController.php', |
|
| 44 | - 'OCA\\Files_Sharing\\Controller\\PublicPreviewController' => __DIR__ . '/..' . '/../lib/Controller/PublicPreviewController.php', |
|
| 45 | - 'OCA\\Files_Sharing\\Controller\\RemoteController' => __DIR__ . '/..' . '/../lib/Controller/RemoteController.php', |
|
| 46 | - 'OCA\\Files_Sharing\\Controller\\SettingsController' => __DIR__ . '/..' . '/../lib/Controller/SettingsController.php', |
|
| 47 | - 'OCA\\Files_Sharing\\Controller\\ShareAPIController' => __DIR__ . '/..' . '/../lib/Controller/ShareAPIController.php', |
|
| 48 | - 'OCA\\Files_Sharing\\Controller\\ShareController' => __DIR__ . '/..' . '/../lib/Controller/ShareController.php', |
|
| 49 | - 'OCA\\Files_Sharing\\Controller\\ShareInfoController' => __DIR__ . '/..' . '/../lib/Controller/ShareInfoController.php', |
|
| 50 | - 'OCA\\Files_Sharing\\Controller\\ShareesAPIController' => __DIR__ . '/..' . '/../lib/Controller/ShareesAPIController.php', |
|
| 51 | - 'OCA\\Files_Sharing\\DeleteOrphanedSharesJob' => __DIR__ . '/..' . '/../lib/DeleteOrphanedSharesJob.php', |
|
| 52 | - 'OCA\\Files_Sharing\\Exceptions\\BrokenPath' => __DIR__ . '/..' . '/../lib/Exceptions/BrokenPath.php', |
|
| 53 | - 'OCA\\Files_Sharing\\Exceptions\\S2SException' => __DIR__ . '/..' . '/../lib/Exceptions/S2SException.php', |
|
| 54 | - 'OCA\\Files_Sharing\\Exceptions\\SharingRightsException' => __DIR__ . '/..' . '/../lib/Exceptions/SharingRightsException.php', |
|
| 55 | - 'OCA\\Files_Sharing\\ExpireSharesJob' => __DIR__ . '/..' . '/../lib/ExpireSharesJob.php', |
|
| 56 | - 'OCA\\Files_Sharing\\External\\Cache' => __DIR__ . '/..' . '/../lib/External/Cache.php', |
|
| 57 | - 'OCA\\Files_Sharing\\External\\Manager' => __DIR__ . '/..' . '/../lib/External/Manager.php', |
|
| 58 | - 'OCA\\Files_Sharing\\External\\Mount' => __DIR__ . '/..' . '/../lib/External/Mount.php', |
|
| 59 | - 'OCA\\Files_Sharing\\External\\MountProvider' => __DIR__ . '/..' . '/../lib/External/MountProvider.php', |
|
| 60 | - 'OCA\\Files_Sharing\\External\\Scanner' => __DIR__ . '/..' . '/../lib/External/Scanner.php', |
|
| 61 | - 'OCA\\Files_Sharing\\External\\Storage' => __DIR__ . '/..' . '/../lib/External/Storage.php', |
|
| 62 | - 'OCA\\Files_Sharing\\External\\Watcher' => __DIR__ . '/..' . '/../lib/External/Watcher.php', |
|
| 63 | - 'OCA\\Files_Sharing\\Helper' => __DIR__ . '/..' . '/../lib/Helper.php', |
|
| 64 | - 'OCA\\Files_Sharing\\Hooks' => __DIR__ . '/..' . '/../lib/Hooks.php', |
|
| 65 | - 'OCA\\Files_Sharing\\ISharedStorage' => __DIR__ . '/..' . '/../lib/ISharedStorage.php', |
|
| 66 | - 'OCA\\Files_Sharing\\Listener\\LoadAdditionalListener' => __DIR__ . '/..' . '/../lib/Listener/LoadAdditionalListener.php', |
|
| 67 | - 'OCA\\Files_Sharing\\Listener\\LoadSidebarListener' => __DIR__ . '/..' . '/../lib/Listener/LoadSidebarListener.php', |
|
| 68 | - 'OCA\\Files_Sharing\\Listener\\ShareInteractionListener' => __DIR__ . '/..' . '/../lib/Listener/ShareInteractionListener.php', |
|
| 69 | - 'OCA\\Files_Sharing\\Listener\\UserAddedToGroupListener' => __DIR__ . '/..' . '/../lib/Listener/UserAddedToGroupListener.php', |
|
| 70 | - 'OCA\\Files_Sharing\\Listener\\UserShareAcceptanceListener' => __DIR__ . '/..' . '/../lib/Listener/UserShareAcceptanceListener.php', |
|
| 71 | - 'OCA\\Files_Sharing\\Middleware\\OCSShareAPIMiddleware' => __DIR__ . '/..' . '/../lib/Middleware/OCSShareAPIMiddleware.php', |
|
| 72 | - 'OCA\\Files_Sharing\\Middleware\\ShareInfoMiddleware' => __DIR__ . '/..' . '/../lib/Middleware/ShareInfoMiddleware.php', |
|
| 73 | - 'OCA\\Files_Sharing\\Middleware\\SharingCheckMiddleware' => __DIR__ . '/..' . '/../lib/Middleware/SharingCheckMiddleware.php', |
|
| 74 | - 'OCA\\Files_Sharing\\Migration\\OwncloudGuestShareType' => __DIR__ . '/..' . '/../lib/Migration/OwncloudGuestShareType.php', |
|
| 75 | - 'OCA\\Files_Sharing\\Migration\\SetAcceptedStatus' => __DIR__ . '/..' . '/../lib/Migration/SetAcceptedStatus.php', |
|
| 76 | - 'OCA\\Files_Sharing\\Migration\\SetPasswordColumn' => __DIR__ . '/..' . '/../lib/Migration/SetPasswordColumn.php', |
|
| 77 | - 'OCA\\Files_Sharing\\MountProvider' => __DIR__ . '/..' . '/../lib/MountProvider.php', |
|
| 78 | - 'OCA\\Files_Sharing\\Notification\\Listener' => __DIR__ . '/..' . '/../lib/Notification/Listener.php', |
|
| 79 | - 'OCA\\Files_Sharing\\Notification\\Notifier' => __DIR__ . '/..' . '/../lib/Notification/Notifier.php', |
|
| 80 | - 'OCA\\Files_Sharing\\Scanner' => __DIR__ . '/..' . '/../lib/Scanner.php', |
|
| 81 | - 'OCA\\Files_Sharing\\Settings\\Personal' => __DIR__ . '/..' . '/../lib/Settings/Personal.php', |
|
| 82 | - 'OCA\\Files_Sharing\\ShareBackend\\File' => __DIR__ . '/..' . '/../lib/ShareBackend/File.php', |
|
| 83 | - 'OCA\\Files_Sharing\\ShareBackend\\Folder' => __DIR__ . '/..' . '/../lib/ShareBackend/Folder.php', |
|
| 84 | - 'OCA\\Files_Sharing\\SharedMount' => __DIR__ . '/..' . '/../lib/SharedMount.php', |
|
| 85 | - 'OCA\\Files_Sharing\\SharedStorage' => __DIR__ . '/..' . '/../lib/SharedStorage.php', |
|
| 86 | - 'OCA\\Files_Sharing\\Updater' => __DIR__ . '/..' . '/../lib/Updater.php', |
|
| 23 | + public static $classMap = array( |
|
| 24 | + 'OCA\\Files_Sharing\\Activity\\Filter' => __DIR__.'/..'.'/../lib/Activity/Filter.php', |
|
| 25 | + 'OCA\\Files_Sharing\\Activity\\Providers\\Base' => __DIR__.'/..'.'/../lib/Activity/Providers/Base.php', |
|
| 26 | + 'OCA\\Files_Sharing\\Activity\\Providers\\Downloads' => __DIR__.'/..'.'/../lib/Activity/Providers/Downloads.php', |
|
| 27 | + 'OCA\\Files_Sharing\\Activity\\Providers\\Groups' => __DIR__.'/..'.'/../lib/Activity/Providers/Groups.php', |
|
| 28 | + 'OCA\\Files_Sharing\\Activity\\Providers\\PublicLinks' => __DIR__.'/..'.'/../lib/Activity/Providers/PublicLinks.php', |
|
| 29 | + 'OCA\\Files_Sharing\\Activity\\Providers\\RemoteShares' => __DIR__.'/..'.'/../lib/Activity/Providers/RemoteShares.php', |
|
| 30 | + 'OCA\\Files_Sharing\\Activity\\Providers\\Users' => __DIR__.'/..'.'/../lib/Activity/Providers/Users.php', |
|
| 31 | + 'OCA\\Files_Sharing\\Activity\\Settings\\PublicLinks' => __DIR__.'/..'.'/../lib/Activity/Settings/PublicLinks.php', |
|
| 32 | + 'OCA\\Files_Sharing\\Activity\\Settings\\RemoteShare' => __DIR__.'/..'.'/../lib/Activity/Settings/RemoteShare.php', |
|
| 33 | + 'OCA\\Files_Sharing\\Activity\\Settings\\Shared' => __DIR__.'/..'.'/../lib/Activity/Settings/Shared.php', |
|
| 34 | + 'OCA\\Files_Sharing\\AppInfo\\Application' => __DIR__.'/..'.'/../lib/AppInfo/Application.php', |
|
| 35 | + 'OCA\\Files_Sharing\\BackgroundJob\\FederatedSharesDiscoverJob' => __DIR__.'/..'.'/../lib/BackgroundJob/FederatedSharesDiscoverJob.php', |
|
| 36 | + 'OCA\\Files_Sharing\\Cache' => __DIR__.'/..'.'/../lib/Cache.php', |
|
| 37 | + 'OCA\\Files_Sharing\\Capabilities' => __DIR__.'/..'.'/../lib/Capabilities.php', |
|
| 38 | + 'OCA\\Files_Sharing\\Collaboration\\ShareRecipientSorter' => __DIR__.'/..'.'/../lib/Collaboration/ShareRecipientSorter.php', |
|
| 39 | + 'OCA\\Files_Sharing\\Command\\CleanupRemoteStorages' => __DIR__.'/..'.'/../lib/Command/CleanupRemoteStorages.php', |
|
| 40 | + 'OCA\\Files_Sharing\\Command\\ExiprationNotification' => __DIR__.'/..'.'/../lib/Command/ExiprationNotification.php', |
|
| 41 | + 'OCA\\Files_Sharing\\Controller\\AcceptController' => __DIR__.'/..'.'/../lib/Controller/AcceptController.php', |
|
| 42 | + 'OCA\\Files_Sharing\\Controller\\DeletedShareAPIController' => __DIR__.'/..'.'/../lib/Controller/DeletedShareAPIController.php', |
|
| 43 | + 'OCA\\Files_Sharing\\Controller\\ExternalSharesController' => __DIR__.'/..'.'/../lib/Controller/ExternalSharesController.php', |
|
| 44 | + 'OCA\\Files_Sharing\\Controller\\PublicPreviewController' => __DIR__.'/..'.'/../lib/Controller/PublicPreviewController.php', |
|
| 45 | + 'OCA\\Files_Sharing\\Controller\\RemoteController' => __DIR__.'/..'.'/../lib/Controller/RemoteController.php', |
|
| 46 | + 'OCA\\Files_Sharing\\Controller\\SettingsController' => __DIR__.'/..'.'/../lib/Controller/SettingsController.php', |
|
| 47 | + 'OCA\\Files_Sharing\\Controller\\ShareAPIController' => __DIR__.'/..'.'/../lib/Controller/ShareAPIController.php', |
|
| 48 | + 'OCA\\Files_Sharing\\Controller\\ShareController' => __DIR__.'/..'.'/../lib/Controller/ShareController.php', |
|
| 49 | + 'OCA\\Files_Sharing\\Controller\\ShareInfoController' => __DIR__.'/..'.'/../lib/Controller/ShareInfoController.php', |
|
| 50 | + 'OCA\\Files_Sharing\\Controller\\ShareesAPIController' => __DIR__.'/..'.'/../lib/Controller/ShareesAPIController.php', |
|
| 51 | + 'OCA\\Files_Sharing\\DeleteOrphanedSharesJob' => __DIR__.'/..'.'/../lib/DeleteOrphanedSharesJob.php', |
|
| 52 | + 'OCA\\Files_Sharing\\Exceptions\\BrokenPath' => __DIR__.'/..'.'/../lib/Exceptions/BrokenPath.php', |
|
| 53 | + 'OCA\\Files_Sharing\\Exceptions\\S2SException' => __DIR__.'/..'.'/../lib/Exceptions/S2SException.php', |
|
| 54 | + 'OCA\\Files_Sharing\\Exceptions\\SharingRightsException' => __DIR__.'/..'.'/../lib/Exceptions/SharingRightsException.php', |
|
| 55 | + 'OCA\\Files_Sharing\\ExpireSharesJob' => __DIR__.'/..'.'/../lib/ExpireSharesJob.php', |
|
| 56 | + 'OCA\\Files_Sharing\\External\\Cache' => __DIR__.'/..'.'/../lib/External/Cache.php', |
|
| 57 | + 'OCA\\Files_Sharing\\External\\Manager' => __DIR__.'/..'.'/../lib/External/Manager.php', |
|
| 58 | + 'OCA\\Files_Sharing\\External\\Mount' => __DIR__.'/..'.'/../lib/External/Mount.php', |
|
| 59 | + 'OCA\\Files_Sharing\\External\\MountProvider' => __DIR__.'/..'.'/../lib/External/MountProvider.php', |
|
| 60 | + 'OCA\\Files_Sharing\\External\\Scanner' => __DIR__.'/..'.'/../lib/External/Scanner.php', |
|
| 61 | + 'OCA\\Files_Sharing\\External\\Storage' => __DIR__.'/..'.'/../lib/External/Storage.php', |
|
| 62 | + 'OCA\\Files_Sharing\\External\\Watcher' => __DIR__.'/..'.'/../lib/External/Watcher.php', |
|
| 63 | + 'OCA\\Files_Sharing\\Helper' => __DIR__.'/..'.'/../lib/Helper.php', |
|
| 64 | + 'OCA\\Files_Sharing\\Hooks' => __DIR__.'/..'.'/../lib/Hooks.php', |
|
| 65 | + 'OCA\\Files_Sharing\\ISharedStorage' => __DIR__.'/..'.'/../lib/ISharedStorage.php', |
|
| 66 | + 'OCA\\Files_Sharing\\Listener\\LoadAdditionalListener' => __DIR__.'/..'.'/../lib/Listener/LoadAdditionalListener.php', |
|
| 67 | + 'OCA\\Files_Sharing\\Listener\\LoadSidebarListener' => __DIR__.'/..'.'/../lib/Listener/LoadSidebarListener.php', |
|
| 68 | + 'OCA\\Files_Sharing\\Listener\\ShareInteractionListener' => __DIR__.'/..'.'/../lib/Listener/ShareInteractionListener.php', |
|
| 69 | + 'OCA\\Files_Sharing\\Listener\\UserAddedToGroupListener' => __DIR__.'/..'.'/../lib/Listener/UserAddedToGroupListener.php', |
|
| 70 | + 'OCA\\Files_Sharing\\Listener\\UserShareAcceptanceListener' => __DIR__.'/..'.'/../lib/Listener/UserShareAcceptanceListener.php', |
|
| 71 | + 'OCA\\Files_Sharing\\Middleware\\OCSShareAPIMiddleware' => __DIR__.'/..'.'/../lib/Middleware/OCSShareAPIMiddleware.php', |
|
| 72 | + 'OCA\\Files_Sharing\\Middleware\\ShareInfoMiddleware' => __DIR__.'/..'.'/../lib/Middleware/ShareInfoMiddleware.php', |
|
| 73 | + 'OCA\\Files_Sharing\\Middleware\\SharingCheckMiddleware' => __DIR__.'/..'.'/../lib/Middleware/SharingCheckMiddleware.php', |
|
| 74 | + 'OCA\\Files_Sharing\\Migration\\OwncloudGuestShareType' => __DIR__.'/..'.'/../lib/Migration/OwncloudGuestShareType.php', |
|
| 75 | + 'OCA\\Files_Sharing\\Migration\\SetAcceptedStatus' => __DIR__.'/..'.'/../lib/Migration/SetAcceptedStatus.php', |
|
| 76 | + 'OCA\\Files_Sharing\\Migration\\SetPasswordColumn' => __DIR__.'/..'.'/../lib/Migration/SetPasswordColumn.php', |
|
| 77 | + 'OCA\\Files_Sharing\\MountProvider' => __DIR__.'/..'.'/../lib/MountProvider.php', |
|
| 78 | + 'OCA\\Files_Sharing\\Notification\\Listener' => __DIR__.'/..'.'/../lib/Notification/Listener.php', |
|
| 79 | + 'OCA\\Files_Sharing\\Notification\\Notifier' => __DIR__.'/..'.'/../lib/Notification/Notifier.php', |
|
| 80 | + 'OCA\\Files_Sharing\\Scanner' => __DIR__.'/..'.'/../lib/Scanner.php', |
|
| 81 | + 'OCA\\Files_Sharing\\Settings\\Personal' => __DIR__.'/..'.'/../lib/Settings/Personal.php', |
|
| 82 | + 'OCA\\Files_Sharing\\ShareBackend\\File' => __DIR__.'/..'.'/../lib/ShareBackend/File.php', |
|
| 83 | + 'OCA\\Files_Sharing\\ShareBackend\\Folder' => __DIR__.'/..'.'/../lib/ShareBackend/Folder.php', |
|
| 84 | + 'OCA\\Files_Sharing\\SharedMount' => __DIR__.'/..'.'/../lib/SharedMount.php', |
|
| 85 | + 'OCA\\Files_Sharing\\SharedStorage' => __DIR__.'/..'.'/../lib/SharedStorage.php', |
|
| 86 | + 'OCA\\Files_Sharing\\Updater' => __DIR__.'/..'.'/../lib/Updater.php', |
|
| 87 | 87 | ); |
| 88 | 88 | |
| 89 | 89 | public static function getInitializer(ClassLoader $loader) |
| 90 | 90 | { |
| 91 | - return \Closure::bind(function () use ($loader) { |
|
| 91 | + return \Closure::bind(function() use ($loader) { |
|
| 92 | 92 | $loader->prefixLengthsPsr4 = ComposerStaticInitFiles_Sharing::$prefixLengthsPsr4; |
| 93 | 93 | $loader->prefixDirsPsr4 = ComposerStaticInitFiles_Sharing::$prefixDirsPsr4; |
| 94 | 94 | $loader->classMap = ComposerStaticInitFiles_Sharing::$classMap; |
@@ -40,97 +40,97 @@ |
||
| 40 | 40 | */ |
| 41 | 41 | class ContactInteractedWithEvent extends Event { |
| 42 | 42 | |
| 43 | - /** @var IUser */ |
|
| 44 | - private $actor; |
|
| 45 | - |
|
| 46 | - /** @var string|null */ |
|
| 47 | - private $uid; |
|
| 48 | - |
|
| 49 | - /** @var string|null */ |
|
| 50 | - private $email; |
|
| 51 | - |
|
| 52 | - /** @var string|null */ |
|
| 53 | - private $federatedCloudId; |
|
| 54 | - |
|
| 55 | - /** |
|
| 56 | - * @param IUser $actor the user who started the interaction |
|
| 57 | - * |
|
| 58 | - * @since 19.0.0 |
|
| 59 | - */ |
|
| 60 | - public function __construct(IUser $actor) { |
|
| 61 | - parent::__construct(); |
|
| 62 | - $this->actor = $actor; |
|
| 63 | - } |
|
| 64 | - |
|
| 65 | - /** |
|
| 66 | - * @return IUser |
|
| 67 | - * @since 19.0.0 |
|
| 68 | - */ |
|
| 69 | - public function getActor(): IUser { |
|
| 70 | - return $this->actor; |
|
| 71 | - } |
|
| 72 | - |
|
| 73 | - /** |
|
| 74 | - * @return string|null |
|
| 75 | - * @since 19.0.0 |
|
| 76 | - */ |
|
| 77 | - public function getUid(): ?string { |
|
| 78 | - return $this->uid; |
|
| 79 | - } |
|
| 80 | - |
|
| 81 | - /** |
|
| 82 | - * Set the uid of the person interacted with, if known |
|
| 83 | - * |
|
| 84 | - * @param string $uid |
|
| 85 | - * |
|
| 86 | - * @return self |
|
| 87 | - * @since 19.0.0 |
|
| 88 | - */ |
|
| 89 | - public function setUid(string $uid): self { |
|
| 90 | - $this->uid = $uid; |
|
| 91 | - return $this; |
|
| 92 | - } |
|
| 93 | - |
|
| 94 | - /** |
|
| 95 | - * @return string|null |
|
| 96 | - * @since 19.0.0 |
|
| 97 | - */ |
|
| 98 | - public function getEmail(): ?string { |
|
| 99 | - return $this->email; |
|
| 100 | - } |
|
| 101 | - |
|
| 102 | - /** |
|
| 103 | - * Set the email of the person interacted with, if known |
|
| 104 | - * |
|
| 105 | - * @param string $email |
|
| 106 | - * |
|
| 107 | - * @return self |
|
| 108 | - * @since 19.0.0 |
|
| 109 | - */ |
|
| 110 | - public function setEmail(string $email): self { |
|
| 111 | - $this->email = $email; |
|
| 112 | - return $this; |
|
| 113 | - } |
|
| 114 | - |
|
| 115 | - /** |
|
| 116 | - * @return string|null |
|
| 117 | - * @since 19.0.0 |
|
| 118 | - */ |
|
| 119 | - public function getFederatedCloudId(): ?string { |
|
| 120 | - return $this->federatedCloudId; |
|
| 121 | - } |
|
| 122 | - |
|
| 123 | - /** |
|
| 124 | - * Set the federated cloud of the person interacted with, if known |
|
| 125 | - * |
|
| 126 | - * @param string $federatedCloudId |
|
| 127 | - * |
|
| 128 | - * @return self |
|
| 129 | - * @since 19.0.0 |
|
| 130 | - */ |
|
| 131 | - public function setFederatedCloudId(string $federatedCloudId): self { |
|
| 132 | - $this->federatedCloudId = $federatedCloudId; |
|
| 133 | - return $this; |
|
| 134 | - } |
|
| 43 | + /** @var IUser */ |
|
| 44 | + private $actor; |
|
| 45 | + |
|
| 46 | + /** @var string|null */ |
|
| 47 | + private $uid; |
|
| 48 | + |
|
| 49 | + /** @var string|null */ |
|
| 50 | + private $email; |
|
| 51 | + |
|
| 52 | + /** @var string|null */ |
|
| 53 | + private $federatedCloudId; |
|
| 54 | + |
|
| 55 | + /** |
|
| 56 | + * @param IUser $actor the user who started the interaction |
|
| 57 | + * |
|
| 58 | + * @since 19.0.0 |
|
| 59 | + */ |
|
| 60 | + public function __construct(IUser $actor) { |
|
| 61 | + parent::__construct(); |
|
| 62 | + $this->actor = $actor; |
|
| 63 | + } |
|
| 64 | + |
|
| 65 | + /** |
|
| 66 | + * @return IUser |
|
| 67 | + * @since 19.0.0 |
|
| 68 | + */ |
|
| 69 | + public function getActor(): IUser { |
|
| 70 | + return $this->actor; |
|
| 71 | + } |
|
| 72 | + |
|
| 73 | + /** |
|
| 74 | + * @return string|null |
|
| 75 | + * @since 19.0.0 |
|
| 76 | + */ |
|
| 77 | + public function getUid(): ?string { |
|
| 78 | + return $this->uid; |
|
| 79 | + } |
|
| 80 | + |
|
| 81 | + /** |
|
| 82 | + * Set the uid of the person interacted with, if known |
|
| 83 | + * |
|
| 84 | + * @param string $uid |
|
| 85 | + * |
|
| 86 | + * @return self |
|
| 87 | + * @since 19.0.0 |
|
| 88 | + */ |
|
| 89 | + public function setUid(string $uid): self { |
|
| 90 | + $this->uid = $uid; |
|
| 91 | + return $this; |
|
| 92 | + } |
|
| 93 | + |
|
| 94 | + /** |
|
| 95 | + * @return string|null |
|
| 96 | + * @since 19.0.0 |
|
| 97 | + */ |
|
| 98 | + public function getEmail(): ?string { |
|
| 99 | + return $this->email; |
|
| 100 | + } |
|
| 101 | + |
|
| 102 | + /** |
|
| 103 | + * Set the email of the person interacted with, if known |
|
| 104 | + * |
|
| 105 | + * @param string $email |
|
| 106 | + * |
|
| 107 | + * @return self |
|
| 108 | + * @since 19.0.0 |
|
| 109 | + */ |
|
| 110 | + public function setEmail(string $email): self { |
|
| 111 | + $this->email = $email; |
|
| 112 | + return $this; |
|
| 113 | + } |
|
| 114 | + |
|
| 115 | + /** |
|
| 116 | + * @return string|null |
|
| 117 | + * @since 19.0.0 |
|
| 118 | + */ |
|
| 119 | + public function getFederatedCloudId(): ?string { |
|
| 120 | + return $this->federatedCloudId; |
|
| 121 | + } |
|
| 122 | + |
|
| 123 | + /** |
|
| 124 | + * Set the federated cloud of the person interacted with, if known |
|
| 125 | + * |
|
| 126 | + * @param string $federatedCloudId |
|
| 127 | + * |
|
| 128 | + * @return self |
|
| 129 | + * @since 19.0.0 |
|
| 130 | + */ |
|
| 131 | + public function setFederatedCloudId(string $federatedCloudId): self { |
|
| 132 | + $this->federatedCloudId = $federatedCloudId; |
|
| 133 | + return $this; |
|
| 134 | + } |
|
| 135 | 135 | |
| 136 | 136 | } |
@@ -34,109 +34,109 @@ |
||
| 34 | 34 | |
| 35 | 35 | class ListApps extends Base { |
| 36 | 36 | |
| 37 | - /** @var IAppManager */ |
|
| 38 | - protected $manager; |
|
| 39 | - |
|
| 40 | - /** |
|
| 41 | - * @param IAppManager $manager |
|
| 42 | - */ |
|
| 43 | - public function __construct(IAppManager $manager) { |
|
| 44 | - parent::__construct(); |
|
| 45 | - $this->manager = $manager; |
|
| 46 | - } |
|
| 47 | - |
|
| 48 | - protected function configure() { |
|
| 49 | - parent::configure(); |
|
| 50 | - |
|
| 51 | - $this |
|
| 52 | - ->setName('app:list') |
|
| 53 | - ->setDescription('List all available apps') |
|
| 54 | - ->addOption( |
|
| 55 | - 'shipped', |
|
| 56 | - null, |
|
| 57 | - InputOption::VALUE_REQUIRED, |
|
| 58 | - 'true - limit to shipped apps only, false - limit to non-shipped apps only' |
|
| 59 | - ) |
|
| 60 | - ; |
|
| 61 | - } |
|
| 62 | - |
|
| 63 | - protected function execute(InputInterface $input, OutputInterface $output) { |
|
| 64 | - if ($input->getOption('shipped') === 'true' || $input->getOption('shipped') === 'false'){ |
|
| 65 | - $shippedFilter = $input->getOption('shipped') === 'true'; |
|
| 66 | - } else { |
|
| 67 | - $shippedFilter = null; |
|
| 68 | - } |
|
| 69 | - |
|
| 70 | - $apps = \OC_App::getAllApps(); |
|
| 71 | - $enabledApps = $disabledApps = []; |
|
| 72 | - $versions = \OC_App::getAppVersions(); |
|
| 73 | - |
|
| 74 | - //sort enabled apps above disabled apps |
|
| 75 | - foreach ($apps as $app) { |
|
| 76 | - if ($shippedFilter !== null && $this->manager->isShipped($app) !== $shippedFilter){ |
|
| 77 | - continue; |
|
| 78 | - } |
|
| 79 | - if ($this->manager->isInstalled($app)) { |
|
| 80 | - $enabledApps[] = $app; |
|
| 81 | - } else { |
|
| 82 | - $disabledApps[] = $app; |
|
| 83 | - } |
|
| 84 | - } |
|
| 85 | - |
|
| 86 | - $apps = ['enabled' => [], 'disabled' => []]; |
|
| 87 | - |
|
| 88 | - sort($enabledApps); |
|
| 89 | - foreach ($enabledApps as $app) { |
|
| 90 | - $apps['enabled'][$app] = isset($versions[$app]) ? $versions[$app] : true; |
|
| 91 | - } |
|
| 92 | - |
|
| 93 | - sort($disabledApps); |
|
| 94 | - foreach ($disabledApps as $app) { |
|
| 95 | - $apps['disabled'][$app] = null; |
|
| 96 | - } |
|
| 97 | - |
|
| 98 | - $this->writeAppList($input, $output, $apps); |
|
| 99 | - } |
|
| 100 | - |
|
| 101 | - /** |
|
| 102 | - * @param InputInterface $input |
|
| 103 | - * @param OutputInterface $output |
|
| 104 | - * @param array $items |
|
| 105 | - */ |
|
| 106 | - protected function writeAppList(InputInterface $input, OutputInterface $output, $items) { |
|
| 107 | - switch ($input->getOption('output')) { |
|
| 108 | - case self::OUTPUT_FORMAT_PLAIN: |
|
| 109 | - $output->writeln('Enabled:'); |
|
| 110 | - parent::writeArrayInOutputFormat($input, $output, $items['enabled']); |
|
| 111 | - |
|
| 112 | - $output->writeln('Disabled:'); |
|
| 113 | - parent::writeArrayInOutputFormat($input, $output, $items['disabled']); |
|
| 114 | - break; |
|
| 115 | - |
|
| 116 | - default: |
|
| 117 | - parent::writeArrayInOutputFormat($input, $output, $items); |
|
| 118 | - break; |
|
| 119 | - } |
|
| 120 | - } |
|
| 121 | - |
|
| 122 | - /** |
|
| 123 | - * @param string $optionName |
|
| 124 | - * @param CompletionContext $completionContext |
|
| 125 | - * @return array |
|
| 126 | - */ |
|
| 127 | - public function completeOptionValues($optionName, CompletionContext $completionContext) { |
|
| 128 | - if ($optionName === 'shipped') { |
|
| 129 | - return ['true', 'false']; |
|
| 130 | - } |
|
| 131 | - return []; |
|
| 132 | - } |
|
| 133 | - |
|
| 134 | - /** |
|
| 135 | - * @param string $argumentName |
|
| 136 | - * @param CompletionContext $context |
|
| 137 | - * @return string[] |
|
| 138 | - */ |
|
| 139 | - public function completeArgumentValues($argumentName, CompletionContext $context) { |
|
| 140 | - return []; |
|
| 141 | - } |
|
| 37 | + /** @var IAppManager */ |
|
| 38 | + protected $manager; |
|
| 39 | + |
|
| 40 | + /** |
|
| 41 | + * @param IAppManager $manager |
|
| 42 | + */ |
|
| 43 | + public function __construct(IAppManager $manager) { |
|
| 44 | + parent::__construct(); |
|
| 45 | + $this->manager = $manager; |
|
| 46 | + } |
|
| 47 | + |
|
| 48 | + protected function configure() { |
|
| 49 | + parent::configure(); |
|
| 50 | + |
|
| 51 | + $this |
|
| 52 | + ->setName('app:list') |
|
| 53 | + ->setDescription('List all available apps') |
|
| 54 | + ->addOption( |
|
| 55 | + 'shipped', |
|
| 56 | + null, |
|
| 57 | + InputOption::VALUE_REQUIRED, |
|
| 58 | + 'true - limit to shipped apps only, false - limit to non-shipped apps only' |
|
| 59 | + ) |
|
| 60 | + ; |
|
| 61 | + } |
|
| 62 | + |
|
| 63 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
| 64 | + if ($input->getOption('shipped') === 'true' || $input->getOption('shipped') === 'false'){ |
|
| 65 | + $shippedFilter = $input->getOption('shipped') === 'true'; |
|
| 66 | + } else { |
|
| 67 | + $shippedFilter = null; |
|
| 68 | + } |
|
| 69 | + |
|
| 70 | + $apps = \OC_App::getAllApps(); |
|
| 71 | + $enabledApps = $disabledApps = []; |
|
| 72 | + $versions = \OC_App::getAppVersions(); |
|
| 73 | + |
|
| 74 | + //sort enabled apps above disabled apps |
|
| 75 | + foreach ($apps as $app) { |
|
| 76 | + if ($shippedFilter !== null && $this->manager->isShipped($app) !== $shippedFilter){ |
|
| 77 | + continue; |
|
| 78 | + } |
|
| 79 | + if ($this->manager->isInstalled($app)) { |
|
| 80 | + $enabledApps[] = $app; |
|
| 81 | + } else { |
|
| 82 | + $disabledApps[] = $app; |
|
| 83 | + } |
|
| 84 | + } |
|
| 85 | + |
|
| 86 | + $apps = ['enabled' => [], 'disabled' => []]; |
|
| 87 | + |
|
| 88 | + sort($enabledApps); |
|
| 89 | + foreach ($enabledApps as $app) { |
|
| 90 | + $apps['enabled'][$app] = isset($versions[$app]) ? $versions[$app] : true; |
|
| 91 | + } |
|
| 92 | + |
|
| 93 | + sort($disabledApps); |
|
| 94 | + foreach ($disabledApps as $app) { |
|
| 95 | + $apps['disabled'][$app] = null; |
|
| 96 | + } |
|
| 97 | + |
|
| 98 | + $this->writeAppList($input, $output, $apps); |
|
| 99 | + } |
|
| 100 | + |
|
| 101 | + /** |
|
| 102 | + * @param InputInterface $input |
|
| 103 | + * @param OutputInterface $output |
|
| 104 | + * @param array $items |
|
| 105 | + */ |
|
| 106 | + protected function writeAppList(InputInterface $input, OutputInterface $output, $items) { |
|
| 107 | + switch ($input->getOption('output')) { |
|
| 108 | + case self::OUTPUT_FORMAT_PLAIN: |
|
| 109 | + $output->writeln('Enabled:'); |
|
| 110 | + parent::writeArrayInOutputFormat($input, $output, $items['enabled']); |
|
| 111 | + |
|
| 112 | + $output->writeln('Disabled:'); |
|
| 113 | + parent::writeArrayInOutputFormat($input, $output, $items['disabled']); |
|
| 114 | + break; |
|
| 115 | + |
|
| 116 | + default: |
|
| 117 | + parent::writeArrayInOutputFormat($input, $output, $items); |
|
| 118 | + break; |
|
| 119 | + } |
|
| 120 | + } |
|
| 121 | + |
|
| 122 | + /** |
|
| 123 | + * @param string $optionName |
|
| 124 | + * @param CompletionContext $completionContext |
|
| 125 | + * @return array |
|
| 126 | + */ |
|
| 127 | + public function completeOptionValues($optionName, CompletionContext $completionContext) { |
|
| 128 | + if ($optionName === 'shipped') { |
|
| 129 | + return ['true', 'false']; |
|
| 130 | + } |
|
| 131 | + return []; |
|
| 132 | + } |
|
| 133 | + |
|
| 134 | + /** |
|
| 135 | + * @param string $argumentName |
|
| 136 | + * @param CompletionContext $context |
|
| 137 | + * @return string[] |
|
| 138 | + */ |
|
| 139 | + public function completeArgumentValues($argumentName, CompletionContext $context) { |
|
| 140 | + return []; |
|
| 141 | + } |
|
| 142 | 142 | } |