summaryrefslogtreecommitdiffstats
path: root/lib/private/Group
Commit message (Collapse)AuthorAgeFilesLines
* Add typed events for adding and removing a subadminMorris Jobke2020-10-281-1/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #22890 from ↵Roeland Jago Douma2020-09-171-1/+2
|\ | | | | | | | | nextcloud/techdebt/18680/help-static-code-analysis-understand-code Help static code analysis to understand code
| * Help static code analysis to understand code.Daniel Kesselberg2020-09-161-1/+2
| | | | | | | | | | | | It adds proper type hints to private namespace to allow private namespace methods. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Remove not needed semicolon and PHPDoc hintMorris Jobke2020-09-161-1/+0
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Search also the email and displayname in user mangement for groupsMorris Jobke2020-08-051-6/+18
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Allow group search by display nameChristoph Wurst2020-06-101-0/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20776 from nextcloud/enh/limit_group_queriesRoeland Jago Douma2020-05-221-6/+20
|\ | | | | Improve group queries
| * Improve group queriesRoeland Jago Douma2020-05-021-6/+20
| | | | | | | | | | | | | | | | | | | | | | Before we'd also get the diplayname for each group in the backend. In a separate query. This is of course not ideal as this information is obtained on each and every query. Now this is queried once and properly cached. Also added more caching to the manager. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | dont get the group details if we only ask for the idRobin Appelman2020-05-071-21/+30
|/ | | | | | | currenty when getting the groups for a user, the full group object is always created (and cached) even if only the groupid is required Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update license headers for 19Christoph Wurst2020-04-291-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format code according to PSR2Christoph Wurst2020-04-101-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all constantsChristoph Wurst2020-04-102-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-104-15/+14
| | | | | | | | | | | | | | | 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-102-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20391 from nextcloud/refactor/spaces-cleanupChristoph Wurst2020-04-091-2/+2
|\ | | | | Remove all extra whitespace PSR2 does not like
| * Remove trailing and in between spacesChristoph Wurst2020-04-091-2/+2
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #20384 from nextcloud/techdebt/lowercase-keywordsChristoph Wurst2020-04-092-2/+2
|\ \ | |/ |/| Use php keywords in lowercase
| * Use php keywords in lowercaseChristoph Wurst2020-04-092-2/+2
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-092-3/+3
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-092-15/+15
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix multiline commentsChristoph Wurst2020-04-081-13/+13
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-315-0/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-264-24/+24
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix mismatching docblock return typesChristoph Wurst2020-03-061-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-055-9/+14
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix autocomplete suggestions with numeric user idsJoas Schilling2019-11-261-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #17896 from nextcloud/fix/noid/consider-create-group-resultblizzz2019-11-251-27/+34
|\ | | | | take group creation result into consideration
| * reformat code for @skjnldsv <3Arthur Schiwon2019-11-251-16/+22
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * fix documentation, get and createGroup may return nullArthur Schiwon2019-11-251-4/+4
| | | | | | | | | | | | * also have stricter checks in place Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * take group creation result into considerationArthur Schiwon2019-11-251-9/+10
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Some php-cs fixesRoeland Jago Douma2019-11-222-3/+3
|/ | | | | | | | | | | * 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>
* Allow group displaynames in the database backend (#17221)John Molakvoæ2019-10-052-4/+71
|\ | | | | Allow group displaynames in the database backend
| * Do not allow to have an empty display nameJoas Schilling2019-09-271-0/+6
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Fix DI issueJoas Schilling2019-09-271-0/+4
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Remove inherited docsJoas Schilling2019-09-271-16/+0
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Allow to set the group display name in the database backendJoas Schilling2019-09-272-1/+38
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Add a displayname to the database group backendJoas Schilling2019-09-271-3/+39
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix DB usersInGroups fetchingRoeland Jago Douma2019-10-021-3/+8
|/ | | | | | | * Follow the interface defaults * Only set limit or offset if they are properly set Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* group display name support (service level + ldap)Arthur Schiwon2019-05-271-0/+10
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Add dispatcher events to User and Group objectsJoas Schilling2019-03-012-58/+71
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* allow group backends to mark that a group should now be shown in search dialogsRobin Appelman2019-02-251-0/+11
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #12419 from ↵Morris Jobke2018-11-121-4/+10
|\ | | | | | | | | nextcloud/bugfix/noid/group-creation-replace-insertIfNotExist Fix UniqueConstraintViolationException while insert into oc_groups
| * Fix UniqueConstraintViolationException while insert into oc_groupsMorris Jobke2018-11-121-4/+10
| | | | | | | | | | | | | | * fixes race condition in insert * fixes potentiaol deadlock Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Use the defined func()->count() instead of manual countingJoas Schilling2018-11-081-1/+1
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Properly escape column name in "createFunction" callMorris Jobke2018-10-161-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix groupExists when a backend provides group detailsRobin Appelman2018-06-261-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Don't pretend we can add/remove users to/from groups when we can'tRobin Appelman2018-06-192-1/+30
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Keep userids as keys on group searchJohn Molakvoæ (skjnldsv)2018-06-151-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Tabs fixJohn Molakvoæ (skjnldsv)2018-05-251-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Added total count for subadminsJohn Molakvoæ (skjnldsv)2018-05-241-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>