]> source.dussan.org Git - nextcloud-server.git/commitdiff
Deprecate all remaining event constants 25546/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Tue, 9 Feb 2021 12:53:41 +0000 (13:53 +0100)
committerChristoph Wurst <christoph@winzerhof-wurst.at>
Tue, 9 Feb 2021 12:53:41 +0000 (13:53 +0100)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
lib/public/App/ManagerEvent.php
lib/public/Authentication/TwoFactorAuth/IProvider.php
lib/public/Authentication/TwoFactorAuth/IRegistry.php
lib/public/Comments/CommentsEntityEvent.php
lib/public/Comments/CommentsEvent.php
lib/public/Console/ConsoleEvent.php
lib/public/IPreview.php
lib/public/SystemTag/ManagerEvent.php
lib/public/SystemTag/MapperEvent.php
lib/public/SystemTag/SystemTagsEntityEvent.php
lib/public/WorkflowEngine/IManager.php

index e2f718a556f8f6876b6df7f49d6baf3b6dca33b8..58cbdc3d117a6a3cca4144eb242a133bdcf1b008 100644 (file)
@@ -32,12 +32,24 @@ use OCP\EventDispatcher\Event;
  * @since 9.0.0
  */
 class ManagerEvent extends Event {
+       /**
+        * @deprecated 22.0.0
+        */
        public const EVENT_APP_ENABLE = 'OCP\App\IAppManager::enableApp';
+
+       /**
+        * @deprecated 22.0.0
+        */
        public const EVENT_APP_ENABLE_FOR_GROUPS = 'OCP\App\IAppManager::enableAppForGroups';
+
+       /**
+        * @deprecated 22.0.0
+        */
        public const EVENT_APP_DISABLE = 'OCP\App\IAppManager::disableApp';
 
        /**
         * @since 9.1.0
+        * @deprecated 22.0.0
         */
        public const EVENT_APP_UPDATE = 'OCP\App\IAppManager::updateApp';
 
index 1328d60307e4e423886409661496bdad33880c65..83545fa4f6c1cd5cd248979fd05748dc01fa2016 100644 (file)
@@ -36,8 +36,13 @@ interface IProvider {
 
        /**
         * @since 14.0.0
+        * @deprecated 22.0.0
         */
        public const EVENT_SUCCESS = self::class . '::success';
+
+       /**
+        * @deprecated 22.0.0
+        */
        public const EVENT_FAILED = self::class . '::failed';
 
        /**
index c98feee25458477dce4b2a36eeb869bdbc8fe1f5..2e5951aaf2d88e844503079c23cfa95af3277ce2 100644 (file)
@@ -39,7 +39,14 @@ use OCP\IUser;
  * @since 14.0.0
  */
 interface IRegistry {
+       /**
+        * @deprecated 22.0.0
+        */
        public const EVENT_PROVIDER_ENABLED = self::class . '::enable';
+
+       /**
+        * @deprecated 22.0.0
+        */
        public const EVENT_PROVIDER_DISABLED = self::class . '::disable';
 
        /**
index 17f3e76a9965336b1b72db74b95750aaeefc4f60..7ae2968ead87605e1bb581adc981fd110e6b10f6 100644 (file)
@@ -32,6 +32,9 @@ use OCP\EventDispatcher\Event;
  * @since 9.1.0
  */
 class CommentsEntityEvent extends Event {
+       /**
+        * @deprecated 22.0.0
+        */
        public const EVENT_ENTITY = 'OCP\Comments\ICommentsManager::registerEntity';
 
        /** @var string */
index a8a27948e99861083f754f90af17e042f72adf74..9090425aae5b07326306b0541b1030902cecda56 100644 (file)
@@ -32,9 +32,25 @@ use OCP\EventDispatcher\Event;
  * @since 9.0.0
  */
 class CommentsEvent extends Event {
+
+       /**
+        * @deprecated 22.0.0
+        */
        public const EVENT_ADD = 'OCP\Comments\ICommentsManager::addComment';
+
+       /**
+        * @deprecated 22.0.0
+        */
        public const EVENT_PRE_UPDATE = 'OCP\Comments\ICommentsManager::preUpdateComment';
+
+       /**
+        * @deprecated 22.0.0
+        */
        public const EVENT_UPDATE = 'OCP\Comments\ICommentsManager::updateComment';
+
+       /**
+        * @deprecated 22.0.0
+        */
        public const EVENT_DELETE = 'OCP\Comments\ICommentsManager::deleteComment';
 
        /** @var string */
index 1d946d50351c2178e128d7dae530ad93b5333b7b..a12d65c3b159274adddebd1198ec397c2b086188 100644 (file)
@@ -32,6 +32,10 @@ use OCP\EventDispatcher\Event;
  * @since 9.0.0
  */
 class ConsoleEvent extends Event {
+
+       /**
+        * @deprecated 22.0.0
+        */
        public const EVENT_RUN = 'OC\Console\Application::run';
 
        /** @var string */
index aa7bf559dffb6f2abdc406b99185c8f08e206f48..2ae5d83525480809e74ab6135cbe4981dda5e793 100644 (file)
@@ -48,6 +48,7 @@ interface IPreview {
 
        /**
         * @since 9.2.0
+        * @deprecated 22.0.0
         */
        public const EVENT = self::class . ':' . 'PreviewRequested';
 
index 444197758007615b2fc407bb4564d76f85028013..45cd35fc821212eb97adfabef1f7d4d778a103c3 100644 (file)
@@ -37,8 +37,20 @@ use OCP\EventDispatcher\Event;
  * @since 9.0.0
  */
 class ManagerEvent extends Event {
+
+       /**
+        * @deprecated 22.0.0
+        */
        public const EVENT_CREATE = 'OCP\SystemTag\ISystemTagManager::createTag';
+
+       /**
+        * @deprecated 22.0.0
+        */
        public const EVENT_UPDATE = 'OCP\SystemTag\ISystemTagManager::updateTag';
+
+       /**
+        * @deprecated 22.0.0
+        */
        public const EVENT_DELETE = 'OCP\SystemTag\ISystemTagManager::deleteTag';
 
        /** @var string */
index 469a381d3c13a589267b856c1e3339e16d56dd90..a8fc30771f41396422e69521a19cf8bdb00de82d 100644 (file)
@@ -36,7 +36,15 @@ use OCP\EventDispatcher\Event;
  * @since 9.0.0
  */
 class MapperEvent extends Event {
+
+       /**
+        * @deprecated 22.0.0
+        */
        public const EVENT_ASSIGN = 'OCP\SystemTag\ISystemTagObjectMapper::assignTags';
+
+       /**
+        * @deprecated 22.0.0
+        */
        public const EVENT_UNASSIGN = 'OCP\SystemTag\ISystemTagObjectMapper::unassignTags';
 
        /** @var string */
index 1ae82f2a7e4fe1ce4cbbc2048a754a568a76e8cf..33acecdcd2dbeb3237b54e75f2346598e58ff91f 100644 (file)
@@ -36,6 +36,10 @@ use OCP\EventDispatcher\Event;
  * @since 9.1.0
  */
 class SystemTagsEntityEvent extends Event {
+
+       /**
+        * @deprecated 22.0.0
+        */
        public const EVENT_ENTITY = 'OCP\SystemTag\ISystemTagManager::registerEntity';
 
        /** @var string */
index 5863cf7ce22d6e3db02cda8babc2fa01632c78d0..579cb4cd149c13ebd85256f28ea592168b29e48f 100644 (file)
@@ -46,10 +46,18 @@ interface IManager {
        public const MAX_OPERATION_VALUE_BYTES = 4096;
 
        /**
-        * @deprecated Will be removed in NC19. Use the dedicated events in OCP\WorkflowEngine\Events
+        * @deprecated 17.0.0 Will be removed in NC19. Use the dedicated events in OCP\WorkflowEngine\Events
         */
        public const EVENT_NAME_REG_OPERATION = 'OCP\WorkflowEngine::registerOperations';
+
+       /**
+        * @deprecated 17.0.0
+        */
        public const EVENT_NAME_REG_ENTITY = 'OCP\WorkflowEngine::registerEntities';
+
+       /**
+        * @deprecated 17.0.0
+        */
        public const EVENT_NAME_REG_CHECK = 'OCP\WorkflowEngine::registerChecks';
 
        /**