aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Group
Commit message (Collapse)AuthorAgeFilesLines
* fix(psalm): Fix @throws annotationsfix/psalm/throws-annotationsprovokateurin2024-09-171-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-252-4/+4
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-2429-555/+58
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(groups): allows to save group names with more than 64 charactersBenjamin Gaussorgues2024-04-223-1/+45
| | | | | | Mimic behaviour from LDAP users and add a hard limit to 255 characters Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Fix psalm spotted type errorsCôme Chilliet2023-09-051-4/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Move new methods to a new interface in OCPCôme Chilliet2023-09-053-18/+64
| | | | | | | This avoids breaking compatibility for group backends not based on ABackend abstract class. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix psalm errors about groupExists return typeCôme Chilliet2023-09-051-8/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add batch methods in user backendsCarl Schwan2023-09-052-0/+53
| | | | | | This allows for faster group search with significantly less DB traffic Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Update version number in since and deprecated annotationsCôme Chilliet2023-04-271-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Clear up return typesCôme Chilliet2023-04-271-2/+1
| | | | | | usersInGroup index by int for BC, searchInGroup index by uid (string). Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Let OC\Group\Group handle the fallback and remove default implementation ↵Côme Chilliet2023-04-271-14/+1
| | | | | | from ABackend Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Split new method in a new group backend interfaceCarl Schwan2023-04-272-4/+54
| | | | | | Better for backward compatibility, also move new interfaces to nc 26 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Optimize retrieving display name when searching for users in a groupCarl Schwan2023-04-271-0/+15
| | | | | | | | | This is recurrent scenario that we are searching for users and then for each users we fetch the displayName. This is inefficient, so instead try to do one query to fetch everything (e.g. Database backend) or use the already existing DisplayNameCache helper. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* dispatch new BeforeGroupChangedEvent before setDisplayName on groupsJulien Veyssier2023-02-211-0/+94
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* ci: migrate ocp since checker to psalmDaniel Kesselberg2023-01-241-0/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* composer run cs:fixCôme Chilliet2023-01-2023-23/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add group display name cacheAnna Larch2022-11-281-0/+94
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0424-55/+32
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Change my email addressJohannes Leuker2021-03-241-2/+2
| | | | Signed-off-by: Johannes Leuker <j.leuker@hosting.de>
* Show group backends in occ group:list --info and group:infoJohannes Leuker2021-03-011-0/+36
| | | | Signed-off-by: Johannes Leuker <j.leuker@hosting.de>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-162-2/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add typed events for adding and removing a subadminMorris Jobke2020-10-282-0/+134
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add proper deprecation messageMorris Jobke2020-08-071-1/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Deprecate BeforeUserRemovedEvent because it can't be triggered in all casesMorris Jobke2020-07-301-0/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-1010-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>
* Remove unused importsChristoph Wurst2020-03-251-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for 18Christoph Wurst2019-12-208-16/+24
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add typed events for all group hooks and legacy eventsChristoph Wurst2019-12-118-0/+492
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-0513-15/+47
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Allow to set the group display name in the database backendJoas Schilling2019-09-271-0/+38
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a displayname to the database group backendJoas Schilling2019-09-271-0/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* group display name support (service level + ldap)Arthur Schiwon2019-05-271-0/+36
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* allow group backends to mark that a group should now be shown in search dialogsRobin Appelman2019-02-251-0/+38
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Expose subadmin to OCPRoeland Jago Douma2019-01-291-0/+99
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Added disabled count per groupsJohn Molakvoæ (skjnldsv)2018-05-241-0/+36
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Make the group backends also possible using interfacesRoeland Jago Douma2018-04-238-0/+319
Just like for the user backends the group backends should also be properly done using interfaces. This adds the interfaces and abstract class to get started Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>