Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps/dav
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-04-11 11:24:20 +0300
committerGitHub <noreply@github.com>2022-04-11 11:24:20 +0300
commite36233dbab7995c4b2e037828ccb168005e5d76f (patch)
tree2736e5d694b6b42572e4b2a3ab62131598cbe1df /apps/dav
parent823ca53eeac24d9d806494e26eb5337dbe91def6 (diff)
parente08b8c47a2c265be4642d8116de7ec791b7a07d5 (diff)
Merge pull request #31911 from nextcloud/enh/extend-migrators
Extend migrators needed for implementation of the API
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/UserMigration/CalendarMigrator.php21
-rw-r--r--apps/dav/lib/UserMigration/ContactsMigrator.php21
2 files changed, 42 insertions, 0 deletions
diff --git a/apps/dav/lib/UserMigration/CalendarMigrator.php b/apps/dav/lib/UserMigration/CalendarMigrator.php
index 16b21314610..f560b4853b2 100644
--- a/apps/dav/lib/UserMigration/CalendarMigrator.php
+++ b/apps/dav/lib/UserMigration/CalendarMigrator.php
@@ -464,4 +464,25 @@ class CalendarMigrator implements IMigrator {
}
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ public function getId(): string {
+ return 'calendar';
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public function getDisplayName(): string {
+ return $this->l10n->t('Calendar');
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public function getDescription(): string {
+ return $this->l10n->t('Calendars including events, details, and attendees');
+ }
}
diff --git a/apps/dav/lib/UserMigration/ContactsMigrator.php b/apps/dav/lib/UserMigration/ContactsMigrator.php
index 66395173b7a..cfdc20bfdf3 100644
--- a/apps/dav/lib/UserMigration/ContactsMigrator.php
+++ b/apps/dav/lib/UserMigration/ContactsMigrator.php
@@ -363,4 +363,25 @@ class ContactsMigrator implements IMigrator {
}
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ public function getId(): string {
+ return 'contacts';
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public function getDisplayName(): string {
+ return $this->l10n->t('Contacts');
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public function getDescription(): string {
+ return $this->l10n->t('Contacts and groups');
+ }
}