aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Share/IManager.php
Commit message (Collapse)AuthorAgeFilesLines
* fix(files_sharing): phpunit & openapi fixesskjnldsv2024-07-121-1/+1
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-241-26/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* ShareByMailProvider: getAccessList: add token to returned arrayAdam Serbinski2024-03-211-4/+4
| | | | | | This allows the share URI to be regenerated. Signed-off-by: Adam Serbinski <adam@serbinski.com>
* ShareByMailProvider: getAccessList: return full list of recipientsAdam Serbinski2024-03-211-3/+6
| | | | | | | | Previously was returning only boolean true if the Node was shared by email, or false if not. Now provides an array containing the list of email share recipients. Signed-off-by: Adam Serbinski <adam@serbinski.com>
* feat(php,vue): Create a new parameterBaptiste Fotia2024-01-311-0/+9
| | | | Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
* composer run cs:fixCôme Chilliet2023-01-201-1/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix checkpassword undocummented null parameterCarl Schwan2022-10-171-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Add argument to getSharesInFolder enable deep share lookupLouis Chemineau2022-07-261-9/+2
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Recursively fetch subsharesLouis Chemineau2022-07-261-0/+8
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Use email settings in DAV searchLouis Chemineau2022-04-191-1/+9
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Use share setting in DAV searchLouis Chemineau2022-04-191-0/+8
| | | | | | shareapi_restrict_user_enumeration_full_match_ignore_second_display_name was introduced to ignore second display name during search from the share panel. But this setting was not respected by search from the calendar application. This fix it. Signed-off-by: Louis Chemineau <louis@chmn.me>
* Allow to disable password policy enforcement for selected groupsCarl Schwan2022-04-051-1/+3
| | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu> Co-authored-by: Vincent Petry <vincent@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Clarify that some interface are not meant to be implementedCarl Schwan2022-03-041-1/+5
| | | | | | | | | This make sure that apps don't implement this interfaces and gives us more liberty to add new methods to them (as long as it is compatible from an usage point of view) Signed-off-by: Carl Schwan <carl@carlschwan.eu> Co-authored-by: Vincent Petry <vincent@nextcloud.com>
* Move common logic to share managerJoas Schilling2021-11-091-0/+11
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* update public interface with new methodsRobin Appelman2021-05-121-0/+48
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add a setting to restrict returning a full match unless in phonebook or same ↵Joas Schilling2021-03-101-0/+8
| | | | | | group Signed-off-by: Joas Schilling <coding@schilljs.com>
* Restrict autocompletion also based on the phonebook known usersJoas Schilling2021-03-101-0/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow apps to register their share providers from outsideJulius Härtl2020-12-091-0/+6
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Remove @package annotations from public namespaceJulius Härtl2020-08-261-1/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-1/+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>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | 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>
* Update license headersChristoph Wurst2019-12-051-1/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Allow to accept group sharesJoas Schilling2019-11-121-0/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fixup! Get all shares as iterableDaniel Calviño Sánchez2019-10-301-0/+1
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Get all shares as iterableRoeland Jago Douma2019-10-301-0/+11
| | | | | | | | | | | | 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>
* 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-051-0/+15
| | | | | | | | | | | 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>
* Update license headersMorris Jobke2017-11-061-0/+4
| | | | 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>
* Adjust docs and make !$currentAccess simplerJoas Schilling2017-04-131-8/+23
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix returned paths for remote sharesJoas Schilling2017-04-131-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Return the paths for the users without setting them all upJoas Schilling2017-04-131-2/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix commentsRoeland Jago Douma2017-04-131-2/+3
| | | | 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>
* @since 9.2.0 to @since 11.0.0Roeland Jago Douma2016-11-151-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* fix phpdocRobin Appelman2016-11-091-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add method to check if a share provider for a given type is loadedBjoern Schiessle2016-11-011-0/+8
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Stricter signatureRoeland Jago Douma2016-10-311-2/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add getShareTypesInFolder to optimize folder listeningRobin Appelman2016-10-311-0/+11
| | | | Signed-off-by: Robin Appelman <icewind@owncloud.com>
* Fix othersJoas Schilling2016-07-211-2/+3
|
* Fix phpdocRoeland Jago Douma2016-05-101-2/+1
|
* Move post_removeFromGroup to shareManagerRoeland Jago Douma2016-04-131-1/+11
| | | | | | | | The last sharing hook to be moved over. * Added unit tests * Removed old tests that relied on old behaviour * Removed old hooks.php
* Migrate post_groupDelete hook to share manager (#23841)Roeland Douma2016-04-121-0/+9
| | | | | | | | The hook now calls the share manager that will call the responsible shareProvider to do the proper cleanup. * Unit tests added Again nothing should change it is just to cleanup old code
* Migrate post_userDelete hook to share managerRoeland Jago Douma2016-04-041-0/+11
| | | | | | | | | | | | | This makes the post_userDelete hook call the sharemanager. This will cleanup to and from this user. * All shares owned by this user * All shares with this user (user) * All custom group shares * All link share initiated by this user (to avoid invisible link shares) Unit tests are added for the defaultshare provider as well as the federated share provider
* Move OCP\Share over to PSR-4Roeland Jago Douma2016-03-301-0/+247
Touching the code so moving it over to PSR-4