aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Share
Commit message (Collapse)AuthorAgeFilesLines
...
* Address minor commentsJulius Härtl2020-12-091-1/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add internal DECK_USER type to allow unsharing for individual usersJulius Härtl2020-12-091-0/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add share type for deckJulius Härtl2020-12-091-0/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Allow apps to register their share providers from outsideJulius Härtl2020-12-092-0/+12
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Remove @package annotations from public namespaceJulius Härtl2020-08-266-6/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Remove wrongly annotated package namesJulius Härtl2020-08-261-1/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Always sort shares in a reliable wayJoas Schilling2020-06-081-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headers for 19Christoph Wurst2020-04-292-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-104-4/+2
| | | | | | | | | | | | | | | 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 exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-0/+1
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-312-0/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove unused importsChristoph Wurst2020-03-251-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Expose enumeration config though share managerJulius Härtl2020-03-201-0/+16
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Allow to overwrite share target mountpointsJoas Schilling2020-02-171-0/+83
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headers for 18Christoph Wurst2019-12-201-1/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* config.php setting to always accept internal sharesRoeland Jago Douma2019-12-161-0/+53
| | | | | | Part of #18255 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersChristoph Wurst2019-12-058-8/+17
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-224-1/+4
| | | | | | | | | | | * 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>
* Only restrict loading of group and user shares for nowJoas Schilling2019-11-121-0/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow to accept group sharesJoas Schilling2019-11-122-0/+22
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Respect the accepted flag for group and user sharesJoas Schilling2019-11-121-0/+34
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fixup! Get all shares as iterableDaniel Calviño Sánchez2019-10-302-0/+2
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Get all shares as iterableRoeland Jago Douma2019-10-302-0/+19
| | | | | | | | | | | | 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>
* Having the contructor in the interface makes no sense...Roeland Jago Douma2019-10-291-7/+0
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #16723 from nextcloud/fix/sharing/unshare-messageJoas Schilling2019-08-261-0/+8
|\ | | | | Add expiration event for shares
| * Add expiration event for sharesJohn Molakvoæ (skjnldsv)2019-08-211-0/+8
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Make the sharing constants publicly availableJoas Schilling2019-08-231-0/+57
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* allow to add labels to sharesBjoern Schiessle2018-11-011-0/+17
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Extend IShare to show hide download stateRoeland Jago Douma2018-10-301-0/+21
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add "sendPasswordByTalk" property to sharesDaniel Calviño Sánchez2018-07-241-0/+23
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* allow to add a personal note to a shareBjoern Schiessle2018-07-211-0/+18
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Merge pull request #5280 from nextcloud/shared-with-display-nameMorris Jobke2018-07-131-0/+34
|\ | | | | sharedWithDisplayName & sharedWithAvatar
| * SharedWithDisplayName + SharedWithAvatarMaxence Lange2018-05-211-0/+34
| | | | | | | | | | Signed-off-by: Maxence Lange <maxence@nextcloud.com> Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | implement federated group sharesBjoern Schiessle2018-07-111-0/+8
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | Fix PHPDocMorris Jobke2018-07-051-1/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | getDeletedSharedWith methodJohn Molakvoæ (skjnldsv)2018-07-051-0/+14
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Add API to undelete delete group sharesRoeland Jago Douma2018-07-052-0/+29
| | | | | | | | | | | | | | | | | | | | | | 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>
* | replace \OCP\Federation\Exception\ShareNotFoundException with the generic ↵Bjoern Schiessle2018-07-021-2/+1
| | | | | | | | | | | | \OCP\Share\Exception\ShareNotFound exception Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | implement accept share notificationBjoern Schiessle2018-07-021-3/+3
|/ | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Update license headersMorris Jobke2017-11-066-0/+11
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add exceptions to PHPDoc of interfaceLukas Reschke2017-09-101-0/+3
| | | | | | Improves static code analysis here and also keeps expectations proper. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Replace wrong PHPDocsLukas Reschke2017-08-011-1/+1
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Improve wording of various error messagesJan-Christoph Borchardt2017-06-211-1/+1
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Adjust docs and make !$currentAccess simplerJoas Schilling2017-04-132-16/+25
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix returned paths for remote sharesJoas Schilling2017-04-133-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Return the paths for the users without setting them all upJoas Schilling2017-04-133-10/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix commentsRoeland Jago Douma2017-04-132-2/+47
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Offload acceslist creation to providersRoeland Jago Douma2017-04-131-0/+17
| | | | | | | | * This allows for effective queries. * Introduce currentAccess parameter to speciy if the users needs to have currently acces (deleted incomming group share). (For notifications) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Added to public interfaceRoeland Jago Douma2017-04-131-0/+30
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* update unit testsBjoern Schiessle2017-04-071-1/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>