aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Federation
Commit message (Collapse)AuthorAgeFilesLines
* 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/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update share type constant usageJoas Schilling2020-06-241-1/+2
| | | | 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-103-10/+0
| | | | | | | | | | | | | | | 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>
* Use elseif instead of else ifChristoph Wurst2020-04-101-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-056-6/+20
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-1/+0
| | | | | | | | | | | * 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>
* According to the OCM specification the body needs to be JSON encodedBjoern Schiessle2019-02-191-3/+4
| | | | | | see: https://github.com/GEANT/OCM-API/pull/37 Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* translate nextcloud share types to OCM share typesBjoern Schiessle2018-07-111-1/+5
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* log error messgageBjoern Schiessle2018-07-111-0/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* cache results from ocm end-point discoveryBjoern Schiessle2018-07-021-0/+11
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* fix return type from send shareBjoern Schiessle2018-07-021-1/+2
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* look for correct OCM permissionsBjoern Schiessle2018-07-021-1/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* cleanup variable naming, it is actually a resource typeBjoern Schiessle2018-07-021-12/+10
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* some minor fixes and clode cleanupBjoern Schiessle2018-07-022-1/+8
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* send reshare over OCM APIBjoern Schiessle2018-07-021-3/+4
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* detect correctly if a share was send successfulBjoern Schiessle2018-07-021-1/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* adjust to latest api versionBjoern Schiessle2018-07-024-22/+41
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* check API VersionBjoern Schiessle2018-07-021-1/+5
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* send accept share notification (WIP)Bjoern Schiessle2018-07-022-14/+55
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* use new API to send a federated share if possibleBjoern Schiessle2018-07-022-5/+74
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* check if cloud federation api is readyBjoern Schiessle2018-07-021-1/+15
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* start implementing federated sharing 2.0Bjoern Schiessle2018-07-024-0/+559
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Make OCP\Federation strictRoeland Jago Douma2018-01-162-10/+12
| | | | | | | | | * Also internal classes * Added scalar typehints * Added return type * Made strict Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersMorris Jobke2017-11-062-12/+19
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix DI of the cloud id manager into appsJoas Schilling2017-02-141-0/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix copyright headersRobin Appelman2017-02-092-1/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* clean cloud idsRobin Appelman2017-02-091-3/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add testsRobin Appelman2017-02-081-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add a single public api for resolving a cloud id to a user and remote and backRobin Appelman2017-02-082-0/+182
Signed-off-by: Robin Appelman <robin@icewind.nl>