summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CardDAV/SyncService.php
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #37965 from ↵Simon L2023-05-161-26/+41
|\ | | | | | | | | nextcloud/fix/transactional-system-addressbook-sync fix(dav): Run system address book create-if-not-exists in transaction
| * fix(dav): Run system address book create-if-not-exists in transactionChristoph Wurst2023-05-121-26/+41
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | fix(carddav): expose system address bookAnna Larch2023-05-111-7/+11
|/ | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* Revert "Fix sync errors for duplicate cards with the same UID for different ↵Christopher Ng2023-01-131-1/+1
| | | | | | | | backends" This reverts commit ddcee3dbab01b4f4fc163c68a54055facfa8af16. Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Fix sync errors for duplicate cards with the same UID for different backendsAnna Larch2023-01-051-1/+1
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* Add logging to federationAnna Larch2022-07-271-1/+3
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* Cleanup CardDav SyncServiceCarl Schwan2022-06-241-64/+17
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Summer cleanup of the federation appCarl Schwan2022-06-241-9/+2
| | | | | | | | | | - Use IEventDispatcher instead of deprecated symfony dispatcher - Use LoggerInterface where possible - Use php 7.4 properties - Add type hinting where possible - Move federation hooks to a seperate listener Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Merge pull request #31943 from nextcloud/dav-cleanupCarl Schwan2022-05-171-1/+1
|\ | | | | Cleanup dav
| * Fix more psalm issuesCarl Schwan2022-05-161-1/+1
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Minor optimizations for saving user personal informationCarl Schwan2022-05-121-2/+2
|/ | | | | | | | | | | | | | | | * Remove double hook: the OC_User::changeUser triggers an OC\AccountManager::userUpdated and the app is already listening to this signal in its Application definition * Make createCard not check if an card exists if we already checked previously. We also don't try to get the card if the user is disabled as we don't use the card in this case We this change we go from 100 DB requests to 80 DB requests when saving an user email address. Signed-off-by: Carl Schwan <carl@carlschwan.eu> (cherry picked from commit c6fd482edf33214a9ad4787e4cac278f871fa7c8)
* Migrate dav application from ILogger to LoggerInterfaceCôme Chilliet2022-05-021-9/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* remove private AccountManager from SyncServiceArthur Schiwon2021-05-111-7/+6
| | | | | | and fix test Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Improve CertificateManager to not be user context dependentMorris Jobke2020-11-031-3/+1
| | | | | | | | | * removes the ability for users to import their own certificates (for external storage) * reliably returns the same certificate bundles system wide (and not depending on the user context and available sessions) The user specific certificates were broken in some cases anyways, as they are only loaded if the specific user is logged in and thus causing unexpected behavior for background jobs and other non-user triggered code paths. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Sync all users to the system addresssbookJoas Schilling2020-09-211-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-13/+10
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-1/+1
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* avoids users searches on backend, faster processingArthur Schiwon2019-04-171-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* be careful with mixed return values even if it may look unsuspicious…Arthur Schiwon2018-11-271-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Remove users from system addressbook when user deactivatedThomas Citharel2018-08-061-10/+14
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Simplify return statementMorris Jobke2018-02-131-3/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-061-1/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* get addressbook url and carddav user from remote serverBjoern Schiessle2017-04-111-14/+17
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* fix testsBjoern Schiessle2017-03-241-7/+26
| | | | | | calling getAbsoluteBundlePath() in the constructor makes other tests fail Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Load cert file before syncing addressbooks and contactsJoas Schilling2017-03-241-16/+31
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* update system address book if the user change the personal settingsBjoern Schiessle2016-11-211-5/+22
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Fix apps/Joas Schilling2016-07-211-2/+3
|
* Update license headersLukas Reschke2016-05-261-1/+1
|
* Move dav app to PSR-4 (#24527)Joas Schilling2016-05-121-0/+284
* Move Application to correct namespace and PSR-4 it * Move dav app to PSR-4