summaryrefslogtreecommitdiffstats
path: root/lib/private/Collaboration/Resources
Commit message (Collapse)AuthorAgeFilesLines
* Refactors lib/private/Collaboration.Faraz Samapoor2023-10-034-132/+27
| | | | | | Mainly using PHP8's constructor property promotion. Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* fix: Migrate collaboration listener and remove legacy adapterJoas Schilling2023-07-281-34/+16
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix!: Remove symfony EventDispatcherInterface from UserJoas Schilling2023-07-271-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore: Replace \OC::$server->query with \OCP\Server::get in /libChristoph Wurst2023-07-061-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use implementations instead of interfaces for accessing private methodsjld31032023-03-301-1/+1
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* Fix double where() usage in resource managerJoas Schilling2023-01-231-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* composer run cs:fixCôme Chilliet2023-01-203-3/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Introduce event for loading additional script on projectsJulius Härtl2022-05-121-6/+27
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix a few psalm issues and moved back to psalm/phar 4.18Carl Schwan2022-01-121-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-045-10/+6
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Less ILoggerJoas Schilling2021-04-272-8/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headers for 19Christoph Wurst2020-04-292-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-103-3/+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>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-092-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-094-4/+0
| | | | | | For PSR2 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>
* Update license headers for 18Christoph Wurst2019-12-201-1/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Decouple resource provider registrationDaniel Kesselberg2019-12-072-27/+79
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Update license headersChristoph Wurst2019-12-054-4/+25
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-2/+2
| | | | | | | | | | | * 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>
* Add a repair step to clear the projects access cacheJoas Schilling2019-08-211-0/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Change the logic so projects are only shown when you can access all resourcesJoas Schilling2019-08-211-3/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Set type for access column on cacheAccessForCollectionDaniel Kesselberg2019-05-021-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Escape the search terms on the serverJoas Schilling2019-03-281-2/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make sure the recursive result is returned :-XJoas Schilling2019-03-281-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Force boolean type for access parameterJulius Härtl2019-03-221-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Use rich objects instead of name, link and iconJoas Schilling2019-03-192-76/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Replace the icon-class with an absolute link to an imageJoas Schilling2019-03-192-4/+4
| | | | | | Otherwise the icon can not be displayed in mobile apps Signed-off-by: Joas Schilling <coding@schilljs.com>
* Listen to IUser::postDeleteJulius Härtl2019-03-011-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Access for a collection can only become trueJoas Schilling2019-03-011-0/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Register providers via class namesJoas Schilling2019-03-011-5/+26
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a listener for the eventsJoas Schilling2019-03-011-0/+66
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Also cache the resource type because it is part of the identifierJoas Schilling2019-03-011-1/+24
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix unused variable $accessJoas Schilling2019-03-011-2/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix doc blockJoas Schilling2019-03-011-2/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Don't throw on UniqueConstraintViolationException since a written value is ↵Joas Schilling2019-03-011-2/+8
| | | | | | okay enough Signed-off-by: Joas Schilling <coding@schilljs.com>
* Cache the access manually tooJoas Schilling2019-03-011-0/+51
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix SQL statement and provider method callJulius Härtl2019-03-011-13/+13
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Make sure the results are always sorted the sameJoas Schilling2019-03-011-0/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Improve searchCollections()Joas Schilling2019-03-011-6/+20
| | | | | | | * Search ignores collection where we know the user can not access them * If we filtered all results, we start over with a bigger offset Signed-off-by: Joas Schilling <coding@schilljs.com>
* Further work on the access cacheJoas Schilling2019-03-013-68/+252
| | | | | | Searching for all is still a problem Signed-off-by: Joas Schilling <coding@schilljs.com>
* Start implementing access cacheJoas Schilling2019-03-013-8/+102
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix doc blocksJoas Schilling2019-03-013-25/+27
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Implement search and rename in backendJulius Härtl2019-03-011-0/+44
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add link to resource providerJulius Härtl2019-03-012-0/+32
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Only call resource provider if type matchesJulius Härtl2019-03-011-10/+27
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Allow apps to register resource providersJulius Härtl2019-03-011-4/+11
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add iconClass to resourcesJulius Härtl2019-03-012-0/+31
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Insert new collection into databaseJulius Härtl2019-03-011-1/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Make names mandatoryJoas Schilling2019-03-013-20/+61
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>