summaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/lib/FederatedShareProvider.php
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos in apps/ subdirectoryluz paz2022-09-051-1/+1
| | | | | | | Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/` Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Add argument to getSharesInFolder enable deep share lookupLouis Chemineau2022-07-261-3/+8
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Migrate HintException to OCPGary Kim2021-06-301-3/+3
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Require read permissions for federated sharesRoeland Jago Douma2021-04-191-0/+8
| | | | | | | Else they end up as weird shares that can't be properly utilized by other parties anyway. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Implement expiration date for federated sharesVincent Petry2021-04-151-3/+13
| | | | | | | | | Add expiration date field in UI. Save expiration date when creating or updating federated share. Read expiration date from DB in federated share provider. Applies to both federated user and group shares. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* l10n: Add word user in FederatedShareProvider.phpValdnet2021-04-111-1/+1
| | | | | | Standardizing text strings with other Nextcloud applications. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix some redundant castsRoeland Jago Douma2021-03-081-3/+1
| | | | | | Happier psalm Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-181-7/+7
| | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Adjust defaultJulius Härtl2020-12-081-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Move remoteId of remote reshares to stringJulius Härtl2020-12-081-3/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Don't leave cursors open when tests failJoas Schilling2020-11-091-2/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix typoSergej Pupykin2020-07-161-1/+1
|
* Merge pull request #21264 from stweil/masterMorris Jobke2020-07-051-1/+1
|\ | | | | build: Fix some typos (most of them found by codespell)
| * build: Fix some typos (most of them found by codespell)Stefan Weil2020-06-061-1/+1
| | | | | | | | Signed-off-by: Stefan Weil <sw@weilnetz.de>
* | Update share type constant usageJoas Schilling2020-06-241-6/+6
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add visibility to all constantsChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-14/+7
| | | | | | | | | | | | | | | 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>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Default value of lookupServerEnabled should be the same everywhereGeorg Ehrke2020-03-171-1/+1
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Use proper andwhere clauseRoeland Jago Douma2020-02-031-1/+1
| | | | | | Fixes #19248 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* remove non-circles-generated shares onlyMaxence Lange2020-01-071-1/+2
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Update license headers for 18Christoph Wurst2019-12-201-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* confirm auth on share generated by CirclesMaxence Lange2019-12-161-1/+1
| | | | | | | | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com> returns true Signed-off-by: Maxence Lange <maxence@artificial-owl.com> DI Signed-off-by: Maxence Lange <maxence@artificial-owl.com> DI Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Update license headersChristoph Wurst2019-12-051-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-6/+6
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Get all shares as iterableRoeland Jago Douma2019-10-301-0/+27
| | | | | | | | | | | | Sometimes we need all shares or rather a specific subset of shares but creating dedicated functions is a pain. This just returns an iterable object for all shares so we can loop over them without allocating all the memory on the system. It should not be used by any user called code. But in an occ command or background job it is fine IMO. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Allow removing federated shares of locally reshared filesRoeland Jago Douma2019-10-031-0/+5
| | | | | | | | | | | | * UserA shares a folder to UserB * UserB does a federated share to userC@serverC * UserB now tries to revoke the federated share Before we always tried to notify the remote cloud. The case that the file was reshared locally was not considered. This patch makes sure not to try to notify a federated server if both users are local users. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use numeric placeholders if there are multiple, so that RTL languages can ↵Joas Schilling2018-10-091-3/+3
| | | | | | operate better Signed-off-by: Joas Schilling <coding@schilljs.com>
* implement federated group sharesBjoern Schiessle2018-07-111-13/+31
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* add setting to enable/disable federated group sharingBjoern Schiessle2018-07-111-1/+44
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Add API to undelete delete group sharesRoeland Jago Douma2018-07-051-0/+5
| | | | | | | | | | | When a group share is deleted we keep track of this in the DB. Right now it is only possible for a recipient to get back the share by asking the sharer to delete it and to share it again. This doesn't scale. This endpoint makes it possible to get back the share. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* some minor fixes and clode cleanupBjoern Schiessle2018-07-021-2/+2
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* replace \OCP\Federation\Exception\ShareNotFoundException with the generic ↵Bjoern Schiessle2018-07-021-3/+2
| | | | | | \OCP\Share\Exception\ShareNotFound exception Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* - Don't remove share before all notifications are created, otherwise we miss ↵Bjoern Schiessle2018-07-021-13/+3
| | | | | | | | information necessary to create the notifications - Don't send message to owner/sharer about revoked re-shares twice. Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* send reshare over OCM APIBjoern Schiessle2018-07-021-1/+2
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* implement decline shareBjoern Schiessle2018-07-021-1/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* implement accept share notificationBjoern Schiessle2018-07-021-2/+3
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* implement receiving of federated sharesBjoern Schiessle2018-07-021-9/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* start implementing federated sharing 2.0Bjoern Schiessle2018-07-021-1/+9
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* move log constants to ILoggerArthur Schiwon2018-04-261-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Remove useless return statementsMorris Jobke2018-01-251-3/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Properly log the full exception instead of only the messageMorris Jobke2018-01-231-1/+5
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-061-0/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* add new config switched for the global scale architectureBjoern Schiessle2017-05-291-1/+21
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Adjust docs and make !$currentAccess simplerJoas Schilling2017-04-131-0/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>